Skip to content

Provide support for watch multiple namespaces #1648

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

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

Provide support for watch multiple namespaces #1648

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

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.

Copy link
Contributor

This issue is being marked stale because it has been open for 60 days with no activity. Please comment if this issue is still affecting you. If there is no change, this issue will be closed in 30 days.

@github-actions github-actions bot added the stale label Feb 27, 2025
Copy link
Contributor

This issue was closed because it became stale and did not receive further updates. If the issue is still affecting you, please re-open it, or file a fresh Issue with updated information.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant