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.
| 68 | // operator to a list of namespaces instead of watching every namespace |
| 69 | // in the cluster. |
| 70 | type multiNamespaceCache struct { |
| 71 | Scheme *runtime.Scheme |
| 72 | RESTMapper apimeta.RESTMapper |
| 73 | namespaceToCache map[string]Cache |
| 74 | clusterCache Cache |
| 75 | } |
| 76 | |
| 77 | var _ Cache = &multiNamespaceCache{} |
| 78 |
nothing calls this directly
no outgoing calls
no test coverage detected