Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "user ROLE", Aliases: []string{"role"}, Short: "Grant user access to cluster", Long: "Grant user access to cluster under a specific role", Example: ` # Add cluster-admin role to a user rosa grant user cluster-admin --user=myusername --cluster=mycluster # Grant dedicated-admins role to a user rosa grant user dedicated-admin --user=myusername --cluster=mycluster`, Run: run, Args: func(_ *cobra.Command, argv []string) error { if len(argv) != 1 { return fmt.Errorf( "Expected exactly one command line argument containing the name " + "of the group or role to grant the user.", ) } return nil }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.