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

Support watchNamespace for controller #53

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jayesh-srivastava
Copy link

What this PR does / why we need it: This PR adds support for watchNamespace flag for control-plane-microk8s controller which will restrict the controller to watch cluster-api objects in its namespace only. This is beneficial for certain downstream use cases where there is a separation between controllers and webhooks and one controller is used per namespace.

Which issue(s) this PR fixes:
Fixes #50

@neoaggelos
Copy link

Thank you @jayesh-srivastava

Please rebase on latest main to resolve the CI issues. Also, please also make sure to sign the CLA.

As for the PR, it looks OK, I imagine we would need a similar PR on https://github.com/canonical/cluster-api-bootstrap-provider-microk8s/

@jayesh-srivastava jayesh-srivastava force-pushed the support-watchnamespace branch from 51605fe to e014e20 Compare May 25, 2024 11:10
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 this pull request may close these issues.

Support watchNamespace flag for controller
2 participants