Skip to content

// +kubebuilder:rbac Generates ClusterRole with name "manager-role", How to change this name ?. #2297

Closed Answered by serhermar
SAbdulRahuman asked this question in Support
Discussion options

You must be logged in to vote

Hi!

role.yaml file is generated through the marker:

// +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;patch;delete

If you add namespace=xxxxx to the marker:

// +kubebuilder:rbac:groups=apps,namespace=xxxxxx,resources=deployments,verbs=get;list;watch;create;update;patch;delete

The role.yaml file is generated in Role format.

You can check the documentation in here

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@serhermar
Comment options

Answer selected by camilamacedo86
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
5 participants