adjust cluster create output to new syntax
This commit is contained in:
parent
59359073e4
commit
93daef1098
@ -99,9 +99,9 @@ func NewCmdClusterCreate() *cobra.Command {
|
|||||||
fmt.Printf("kubectl config use-context %s\n", fmt.Sprintf("%s-%s", k3d.DefaultObjectNamePrefix, cluster.Name))
|
fmt.Printf("kubectl config use-context %s\n", fmt.Sprintf("%s-%s", k3d.DefaultObjectNamePrefix, cluster.Name))
|
||||||
} else if !updateCurrentContext {
|
} else if !updateCurrentContext {
|
||||||
if runtime.GOOS == "windows" {
|
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 {
|
} 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")
|
fmt.Println("kubectl cluster-info")
|
||||||
|
Loading…
Reference in New Issue
Block a user