grafana-operator icon indicating copy to clipboard operation
grafana-operator copied to clipboard

watch namespaces using a label selector

Open atos-cosmin-gavagiuc opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. I want to watch namespaces using a label selector for the purpose of running multiple Grafana operators in the same cluster.

Describe the solution you'd like Add WATCH_NAMESPACE_SELECTOR env variable. Example: WATCH_NAMESPACE_SELECTOR="environment: dev" In the controller runtime build a list of namespaces with label environment: dev and pass it to controllerOptions.Cache.DefaultNamespaces

atos-cosmin-gavagiuc avatar Feb 20 '24 13:02 atos-cosmin-gavagiuc