Skip to content

Commit

Permalink
[yurthub]support cache raven apis resource in yurthub component (#2053)
Browse files Browse the repository at this point in the history
  • Loading branch information
rambohe-ch authored May 27, 2024
1 parent 222af07 commit 9eb788d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/yurthub/server/nonresource.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ import (
)

var nonResourceReqPaths = map[string]storage.ClusterInfoType{
"/version": storage.Version,
"/apis/discovery.k8s.io/v1": storage.APIResourcesInfo,
"/apis/discovery.k8s.io/v1beta1": storage.APIResourcesInfo,
"/version": storage.Version,
"/apis/discovery.k8s.io/v1": storage.APIResourcesInfo,
"/apis/discovery.k8s.io/v1beta1": storage.APIResourcesInfo,
"/apis/raven.openyurt.io/v1alpha1": storage.APIResourcesInfo,
"/apis/raven.openyurt.io/v1beta1": storage.APIResourcesInfo,
}

type NonResourceHandler func(kubeClient *kubernetes.Clientset, sw cachemanager.StorageWrapper, path string) http.Handler
Expand Down

0 comments on commit 9eb788d

Please sign in to comment.