-
Notifications
You must be signed in to change notification settings - Fork 593
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
Condense RBAC rules autogenerated by kubebuilder #1771
Comments
@hbagdi says:
|
Also @hbagdi says:
|
Here are my condensed versions: https://gist.github.com/hbagdi/4aba056bb8c96c29d368a9c6eb997a8a |
Breaking down all the files from this directory, since the entire directory was linked in the description: Auth ProxyThese RBAC rules (and the relevant Ultimately since they're part of Viewer and Editor RolesEach one of the I see no reason to change these from what Leader Election RoleThis role and binding are also generated by @hbagdi you suggested a condensed version which looked nearly identical to what's currently present, minus a namespace. Similar to above, these RBAC rules are mostly used for posterity and we reference them chart deployments: There we specify the templated namespace. I don't see any compelling reason to make changes here: as with most of our kustomize configs this is for example and we derive from it in the chart, and the rules do specifically help make leadership election possible. Manager RoleThe main manager role could be condensed as suggested above but with current I do not feel we should be manually maintaining this file for multiple reasons:
I don't see the impetus for change in these or any of the existing roles. If condensing them could be done via the automation we have in place to create and maintain them, that would be fine. We could make upstream improvements to I propose the following new action items to consider this issue resolved, as opposed to making any changes to the files:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is there an existing issue for this?
Problem Statement
See if the RBAC rules generated by kubebuilder here could be condensed into fewer lines for more readability.
Proposed Solution
TBD
Additional information
No response
Acceptance Criteria
The text was updated successfully, but these errors were encountered: