899bbdbe07
This patch links cluster get-kubeconfig command call with appropriate clusterctl functionality, and also replaces old callbacks and removes outdated implementation. Change-Id: Ibd0d981985f94497db250c8df3f5675fdec1d2ca Signed-off-by: Ruslan Aliev <raliev@mirantis.com> Relates-To: #374
1005 B
1005 B
airshipctl cluster get-kubeconfig
Retrieve kubeconfig for a desired cluster
Synopsis
Retrieve cluster kubeconfig and print it to stdout
airshipctl cluster get-kubeconfig [cluster_name] [flags]
Examples
# Retrieve target-cluster kubeconfig
airshipctl cluster get-kubeconfig target-cluster --kubeconfig /tmp/kubeconfig
Options
--context string specify context within the kubeconfig file
-h, --help help for get-kubeconfig
--kubeconfig string path to kubeconfig associated with parental cluster
-n, --namespace string namespace where cluster is located, if not specified default one will be used (default "default")
Options inherited from parent commands
--airshipconf string Path to file for airshipctl configuration. (default "$HOME/.airship/config")
--debug enable verbose output
SEE ALSO
- airshipctl cluster - Manage Kubernetes clusters