Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
add capture to kubeconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
xetys authored Feb 18, 2018
1 parent 171df34 commit bfd6d8e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/clusterKubeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ Example 4: hetzner-kube cluster kubeconfig -n my-cluster -p > my-conf.yaml # pri
name, _ := cmd.Flags().GetString("name")
_, cluster := AppConf.Config.FindClusterByName(name)
masterNode, err := cluster.GetMasterNode()
FatalOnError(err)

err = capturePassphrase(masterNode.SSHKeyName)
FatalOnError(err)

kubeConfigContent, err := runCmd(*masterNode, "cat /etc/kubernetes/admin.conf")
Expand Down

0 comments on commit bfd6d8e

Please sign in to comment.