watch namespaces using a label selector #1433
Labels
enhancement
New feature or request
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
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.DefaultNamespacesThe text was updated successfully, but these errors were encountered: