From b42d57f70c3d5377a1d730bf736c3b4b3bf3c5ea Mon Sep 17 00:00:00 2001 From: 24sama Date: Tue, 7 Dec 2021 21:33:02 +0800 Subject: [PATCH] fix the default flag value makes kk can't create k3s cluster Signed-off-by: 24sama --- cmd/ctl/create/cluster.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/ctl/create/cluster.go b/cmd/ctl/create/cluster.go index 89af1c41..2383c9ae 100644 --- a/cmd/ctl/create/cluster.go +++ b/cmd/ctl/create/cluster.go @@ -18,7 +18,6 @@ package create import ( "fmt" - "github.com/kubesphere/kubekey/apis/kubekey/v1alpha2" "github.com/kubesphere/kubekey/cmd/ctl/options" "github.com/kubesphere/kubekey/cmd/ctl/util" "github.com/kubesphere/kubekey/pkg/common" @@ -99,7 +98,7 @@ func (o *CreateClusterOptions) Run() error { func (o *CreateClusterOptions) AddFlags(cmd *cobra.Command) { cmd.Flags().StringVarP(&o.ClusterCfgFile, "filename", "f", "", "Path to a configuration file") - cmd.Flags().StringVarP(&o.Kubernetes, "with-kubernetes", "", v1alpha2.DefaultKubeVersion, "Specify a supported version of kubernetes") + cmd.Flags().StringVarP(&o.Kubernetes, "with-kubernetes", "", "", "Specify a supported version of kubernetes") cmd.Flags().BoolVarP(&o.LocalStorage, "with-local-storage", "", false, "Deploy a local PV provisioner") cmd.Flags().BoolVarP(&o.EnableKubeSphere, "with-kubesphere", "", false, "Deploy a specific version of kubesphere (default v3.2.0)") cmd.Flags().BoolVarP(&o.SkipPullImages, "skip-pull-images", "", false, "Skip pre pull images")