-
Notifications
You must be signed in to change notification settings - Fork 193
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
Add support for Multi Namespace watch mode #483
Add support for Multi Namespace watch mode #483
Conversation
/hold |
templates/cmd/controller/main.go.tpl
Outdated
Cache: ctrlrtcache.Options{ | ||
Scheme: scheme, | ||
DefaultNamespaces: defaultNamesSpaces, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this is the ideal approach. I'm not certain but I think we'd want to use cache.MultiNamespacedCacheBuilder
in a more dynamic way. See example here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was possible in 0.15.3
which is the version sdk-operator still using, however it was deprecated in 0.16.0 (kubernetes-sigs/controller-runtime#2423) and a newer granular configurations were possible with:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AHH okay cool. I'm still not up to speed on 0.16.x
If we start supporting multi namespace we should also add in |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: a-hilaly, acornett21 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
162eb6b
to
2146fc4
Compare
43561da
to
142b6b5
Compare
/unhold |
Signed-off-by: Amine Hilaly <[email protected]>
Signed-off-by: Amine Hilaly <[email protected]>
142b6b5
to
79a2a99
Compare
/retest |
This commit leverages new functionalities recently introduces in the k8s
upstream
controller-runtime
, enabling users to configure the controllerfor multi-namespace watch mode.
Now users can specify multiple namespaces using a comma-separated list,
such as
default,namespace1,namespace2
(either using helm values orbinary flags (for the bravest, running ACK controllers using k8s
Deployments)
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.