mirror of https://github.com/k3s-io/k3s
improve decription of command 'kubectl create clusterrole'
parent
f9acfd8e38
commit
5958baa163
|
@ -64,9 +64,9 @@ func NewCmdCreateClusterRoleBinding(f cmdutil.Factory, ioStreams genericclioptio
|
||||||
cmdutil.AddGeneratorFlags(cmd, cmdutil.ClusterRoleBindingV1GeneratorName)
|
cmdutil.AddGeneratorFlags(cmd, cmdutil.ClusterRoleBindingV1GeneratorName)
|
||||||
cmd.Flags().String("clusterrole", "", i18n.T("ClusterRole this ClusterRoleBinding should reference"))
|
cmd.Flags().String("clusterrole", "", i18n.T("ClusterRole this ClusterRoleBinding should reference"))
|
||||||
cmd.MarkFlagCustom("clusterrole", "__kubectl_get_resource_clusterrole")
|
cmd.MarkFlagCustom("clusterrole", "__kubectl_get_resource_clusterrole")
|
||||||
cmd.Flags().StringArray("user", []string{}, "Usernames to bind to the role")
|
cmd.Flags().StringArray("user", []string{}, "Usernames to bind to the clusterrole")
|
||||||
cmd.Flags().StringArray("group", []string{}, "Groups to bind to the role")
|
cmd.Flags().StringArray("group", []string{}, "Groups to bind to the clusterrole")
|
||||||
cmd.Flags().StringArray("serviceaccount", []string{}, "Service accounts to bind to the role, in the format <namespace>:<name>")
|
cmd.Flags().StringArray("serviceaccount", []string{}, "Service accounts to bind to the clusterrole, in the format <namespace>:<name>")
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue