-
Notifications
You must be signed in to change notification settings - Fork 764
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
feat: multi namespace RBAC manifests #897
Conversation
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.
Interesting PR
Many thanks @jnoordsij !
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.
Would you please add two tests, one with namespaces only on kubernetesIngress
and an other one with namespaces only on kubernetesCRD
?
Sure! I added two additional tests in the newest commit. |
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.
LGTM
What does this PR do?
When adding multiple namespaces to watch by the Traefik and using namespaced RBAC, this PR ensures Roles and RoleBindings are added for all relevant namespaces.
Motivation
Currently, only a Role + RoleBinding is added for the chart namespaces. When watching more namespaces, manual adding (and maintaining) of additional resources is required, as by default the ServiceAccount has no access to the resources.
This also includes new behavior for the default list of watched namespaces, which previously did not respect namespace overrides (always using
.Release.Namespace
).More
make test
and all the tests passed