From d2863e4721897c64673cee5ed0af09046e8a9f0e Mon Sep 17 00:00:00 2001
From: lauk001 <liukuo@kylinos.cn>
Date: Sun, 12 May 2024 02:50:14 +0800
Subject: [PATCH] bugfix-for-upgrading-os

---
 cmd/upgrade.go | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/cmd/upgrade.go b/cmd/upgrade.go
index 2075df2..eb02648 100755
--- a/cmd/upgrade.go
+++ b/cmd/upgrade.go
@@ -51,16 +51,11 @@ func getFlagString(cmd *cobra.Command, flagName string) string {
 
 func runUpgradeCmd(cmd *cobra.Command, args []string) error {
 	clusterId := getFlagString(cmd, "cluster-id")
-	kubeVersion := getFlagString(cmd, "kube-version")
 	imageURL := getFlagString(cmd, "imageurl")
 	if clusterId == "" {
 		return errors.New("cluster-id is required")
 	}
 
-	if kubeVersion == "" {
-		return errors.New("kube-version is required")
-	}
-
 	if imageURL == "" {
 		return errors.New("imageurl is required")
 	}
-- 
2.33.0

