adjust cluster create output to new syntax

This commit is contained in:
iwilltry42 2020-07-14 12:53:12 +02:00
parent 59359073e4
commit 93daef1098
No known key found for this signature in database
GPG Key ID: 7BA57AD1CFF16110

View File

@ -99,9 +99,9 @@ func NewCmdClusterCreate() *cobra.Command {
fmt.Printf("kubectl config use-context %s\n", fmt.Sprintf("%s-%s", k3d.DefaultObjectNamePrefix, cluster.Name))
} else if !updateCurrentContext {
if runtime.GOOS == "windows" {
fmt.Printf("$env:KUBECONFIG=(%s get kubeconfig %s)\n", os.Args[0], cluster.Name)
fmt.Printf("$env:KUBECONFIG=(%s kubeconfig get %s)\n", os.Args[0], cluster.Name)
} else {
fmt.Printf("export KUBECONFIG=$(%s get kubeconfig %s)\n", os.Args[0], cluster.Name)
fmt.Printf("export KUBECONFIG=$(%s kubeconfig get %s)\n", os.Args[0], cluster.Name)
}
}
fmt.Println("kubectl cluster-info")