MCPcopy
hub / github.com/kubernetes-sigs/controller-runtime / multiNamespaceCache

Struct multiNamespaceCache

pkg/cache/multi_namespace_cache.go:70–75  ·  view source on GitHub ↗

multiNamespaceCache knows how to handle multiple namespaced caches Use this feature when scoping permissions for your operator to a list of namespaces instead of watching every namespace in the cluster.

Source from the content-addressed store, hash-verified

68// operator to a list of namespaces instead of watching every namespace
69// in the cluster.
70type multiNamespaceCache struct {
71 Scheme *runtime.Scheme
72 RESTMapper apimeta.RESTMapper
73 namespaceToCache map[string]Cache
74 clusterCache Cache
75}
76
77var _ Cache = &multiNamespaceCache{}
78

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected