mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #69560 from WanLinghao/clusterrolebinding_description_improve
Improve decription of command 'kubectl create clusterrole'
This commit is contained in:
		@@ -64,9 +64,9 @@ func NewCmdCreateClusterRoleBinding(f cmdutil.Factory, ioStreams genericclioptio
 | 
			
		||||
	cmdutil.AddGeneratorFlags(cmd, cmdutil.ClusterRoleBindingV1GeneratorName)
 | 
			
		||||
	cmd.Flags().String("clusterrole", "", i18n.T("ClusterRole this ClusterRoleBinding should reference"))
 | 
			
		||||
	cmd.MarkFlagCustom("clusterrole", "__kubectl_get_resource_clusterrole")
 | 
			
		||||
	cmd.Flags().StringArray("user", []string{}, "Usernames to bind to the role")
 | 
			
		||||
	cmd.Flags().StringArray("group", []string{}, "Groups to bind to the role")
 | 
			
		||||
	cmd.Flags().StringArray("serviceaccount", []string{}, "Service accounts to bind to the role, in the format <namespace>:<name>")
 | 
			
		||||
	cmd.Flags().StringArray("user", []string{}, "Usernames to bind to the clusterrole")
 | 
			
		||||
	cmd.Flags().StringArray("group", []string{}, "Groups to bind to the clusterrole")
 | 
			
		||||
	cmd.Flags().StringArray("serviceaccount", []string{}, "Service accounts to bind to the clusterrole, in the format <namespace>:<name>")
 | 
			
		||||
	return cmd
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user