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

feat/fix(rbac): use generated RBAC in kustomize and helm, grant access to leases #1540

Merged
merged 8 commits into from
May 20, 2024

Conversation

weisdd
Copy link
Collaborator

@weisdd weisdd commented May 19, 2024

Once in a while, we see inconsistencies in RBAC definitions across different deployment options.
This PR aims to fix inconsistencies in kustomize overlays and helm by making them use generated RBAC role definition (config/rbac/role.yaml).

While working on this, I've also noticed that config/rbac/role.yaml does not contain permissions for leases (used for elections), this is also fixed through a kubebuilder annotation.

Another improvement is around PR validation workflow: added a step to validate kustomize overlays by trying to build them.

Fixes: #1541

@weisdd weisdd changed the title feat/fix(rbac): use generated RBAC in kustomize, grant access to leases feat/fix(rbac): use generated RBAC in kustomize and helm, grant access to leases May 19, 2024
Copy link
Collaborator

@NissesSenap NissesSenap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After reading yaml back and forth a few times, LGTM. Really nice to get this all synced everywhere.

@NissesSenap NissesSenap merged commit 3c6066b into master May 20, 2024
10 checks passed
@NissesSenap NissesSenap deleted the feat/kustomize-use-generated-rbac branch May 20, 2024 06:42
@weisdd
Copy link
Collaborator Author

weisdd commented May 20, 2024

Yeah, due to the way how the diff is rendered on GitHub, the change looks more complex than it actually is. Thanks for the review! :)

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.

Keeping RBAC definitions in sync across deployment methods
2 participants