rbac-tool icon indicating copy to clipboard operation
rbac-tool copied to clipboard

Add subresources to generate

Open MaxRink opened this issue 4 years ago • 1 comments

What would you like to be added: Add the option to add subcommands like pods/exec into generated RBAC files Why is this needed: Sometimes you want to give people more granular permissions on certain things and having a complete list on all avaiable subcommands in your rbac so you can easily do so would be nice

MaxRink avatar Jan 24 '22 20:01 MaxRink

@MaxRink thanks for adding this feature request.

Could you maybe give couple of examples of how you'd want to see that CLI to look like?

gadinaor-r7 avatar Jan 27 '22 17:01 gadinaor-r7

fyi @MaxRink - v1.10 adds the show command which basically includes sub-resources and the relevant verbs in a generated role.

This is of course kubernetes version (and cluster) specific.

gadinaor avatar Oct 02 '22 11:10 gadinaor

@gadinaor that looks pretty much like what i was looking for :)

MaxRink avatar Nov 15 '22 16:11 MaxRink