From 92bda65bfb26a737bc15ee9118b8b5974ecd0581 Mon Sep 17 00:00:00 2001 From: Rick <1450685+LinuxSuRen@users.noreply.github.com> Date: Mon, 29 Nov 2021 10:48:10 +0800 Subject: [PATCH] Fix the wrong flags of the k8s version in kk install cmd (#242) --- kubectl-plugin/install/kk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubectl-plugin/install/kk.go b/kubectl-plugin/install/kk.go index 64ff3a4..e8667ae 100644 --- a/kubectl-plugin/install/kk.go +++ b/kubectl-plugin/install/kk.go @@ -36,7 +36,7 @@ ks install kk --version nightly --components devops`, flags := cmd.Flags() flags.StringVarP(&opt.version, "version", "v", types.KsVersion, fmt.Sprintf("The version of KubeSphere. Support value could be %s, nightly, nightly-20210309. nightly equals to nightly-latest", types.KsVersion)) - flags.StringVarP(&opt.version, "kubernetesVersion", "", types.K8sVersion, + flags.StringVarP(&opt.kubernetesVersion, "kubernetesVersion", "", types.K8sVersion, "The version of Kubernetes") flags.StringArrayVarP(&opt.components, "components", "", []string{}, "The components which you want to enable after the installation")