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

Provide support for watch multiple namespaces #1648

Open
ryu-sato opened this issue Dec 28, 2024 · 0 comments · May be fixed by #1649
Open

Provide support for watch multiple namespaces #1648

ryu-sato opened this issue Dec 28, 2024 · 0 comments · May be fixed by #1649

Comments

@ryu-sato
Copy link

Hi team,

I would like to enable operator to watch multiple specific namespaces, in addition to the existing capability of watching a single namespace or all namespaces in cluster.

Currently, the operator cannot watch multiple namespaces because it uses the "Namespace" option when instantiating a manager. This option is now deprecated, and you should switch to using the "Cache" option instead, which supports watching multiple namespaces.

Reference: https://github.com/kubernetes-sigs/controller-runtime/releases/tag/v0.15.0

manager.Options.Namespace has been deprecated in favor of manager.Options.Cache.Namespaces.

Therefore, I propose updating the operator to instantiate the manager with the "Cache" option.

@ryu-sato ryu-sato linked a pull request Dec 28, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant