Skip to content

Commit

Permalink
make switch, merge and wait as default when using save in cluster cre…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
uzaxirr committed Jan 24, 2025
1 parent 1ab807f commit 63d39de
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/kubernetes/kubernetes_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ var kubernetesCreateCmd = &cobra.Command{
os.Exit(1)
}

if saveConfigKubernetes {
switchConfigKubernetes = true
mergeConfigKubernetes = true
waitKubernetes = true
}

if !waitKubernetes {
if saveConfigKubernetes || switchConfigKubernetes || mergeConfigKubernetes {
utility.Error("you can't use --save, --switch or --merge without --wait")
Expand Down

0 comments on commit 63d39de

Please sign in to comment.