-
Notifications
You must be signed in to change notification settings - Fork 71
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 metadata flags for name, namespace and annotations #92
Comments
@paulbarfuss - HNY and thanks for the above - few questions/comments:
|
HNY to you as well @gadinaor Thank you for having a look! I am going to remove the merge logic on the show command as that should be a separate GH issue and may circle back to that at a later date. The short answer is that I was looking for a way to manage RBAC like I will update the name/namespace to match the existing values as well on the open PR as there is some good value in those changes, as long as they don't modify existing behavior with the default values. |
Hi @paulbarfuss Dud you have a chance to look into it and update the code? |
Hi @gadinaor I have updated the PR to better maintain the original intent and functionality of the The original thought around using |
Available in v1.18.0 |
What would you like to be added:
Add flags to customize:
Why is this needed:
For the
rbac-tool gen
andrbac-tool show
commands it would be useful for automation to be able to customize the object metadata during role generation.For example:
# Generate a ClusterRole with all the available permissions for core and apps api groups rbac-tool show \ --for-groups=,apps \ --scope namespace \ --name foo \ --namespace bar \ --annotations argocd.argoproj.io/sync-wave=2,rbac.authorization.kubernetes.io/autoupdate=true
With these flags it would be possible to generate fully functional roles without having to make modifications to the YAML after running the tool.
The text was updated successfully, but these errors were encountered: