Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

watch namespaces using a label selector #1433

Open
atos-cosmin-gavagiuc opened this issue Feb 20, 2024 · 0 comments
Open

watch namespaces using a label selector #1433

atos-cosmin-gavagiuc opened this issue Feb 20, 2024 · 0 comments
Labels
enhancement New feature or request triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@atos-cosmin-gavagiuc
Copy link
Contributor

atos-cosmin-gavagiuc commented Feb 20, 2024

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 atos-cosmin-gavagiuc added enhancement New feature or request needs triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Feb 20, 2024
@NissesSenap NissesSenap added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

2 participants