From 8ffdc674b2e6f53f1c541864007f5f913851682a Mon Sep 17 00:00:00 2001 From: Alan Zhu Date: Mon, 1 Mar 2021 20:42:57 +0800 Subject: [PATCH] update kubeadm upgrade description Signed-off-by: Alan Zhu --- cmd/kubeadm/app/phases/upgrade/compute.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/kubeadm/app/phases/upgrade/compute.go b/cmd/kubeadm/app/phases/upgrade/compute.go index a0c72332d63..f83c119c188 100644 --- a/cmd/kubeadm/app/phases/upgrade/compute.go +++ b/cmd/kubeadm/app/phases/upgrade/compute.go @@ -225,11 +225,11 @@ func GetAvailableUpgrades(versionGetterImpl VersionGetter, experimentalUpgradesA minorUnstable := latestVersion.Components()[1] // Get and output the current latest unstable version previousBranch := fmt.Sprintf("latest-1.%d", minorUnstable-1) - previousBranchLatestVersionStr, previousBranchLatestVersion, err := versionGetterImpl.VersionFromCILabel(previousBranch, "") + previousBranchLatestVersionStr, previousBranchLatestVersion, err := versionGetterImpl.VersionFromCILabel(previousBranch, "previous version") if err != nil { return upgrades, err } - fmt.Printf("[upgrade/versions] Latest %s: %s\n", "", previousBranchLatestVersionStr) + fmt.Printf("[upgrade/versions] Latest %s: %s\n", "previous version", previousBranchLatestVersionStr) // If that previous latest version is an RC, RCs are allowed and the cluster version is lower than the RC version, show the upgrade if rcUpgradesAllowed && rcUpgradePossible(clusterVersion, previousBranchLatestVersion) {