Documentation
¶
Index ¶
Constants ¶
View Source
const EnvPs1 = "KUBE_PS1_CLUSTER_FUNCTION"
Environment variable that for setting PS1
Variables ¶
View Source
var ( // LoginCmd represents the login command LoginCmd = &cobra.Command{ Use: "login <CLUSTERID|EXTERNAL_ID|CLUSTER_NAME|CLUSTER_NAME_SEARCH>", Short: "Login to a target cluster", Long: `Running login command will send a request to backplane api using OCM token. The backplane api will return a proxy url for target cluster. The url will be written to kubeconfig, so we can run oc command later to operate the target cluster.`, Example: " backplane login <id>\n backplane login %test%\n backplane login <external_id>", Args: cobra.ExactArgs(1), RunE: runLogin, SilenceUsage: true, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.