Skip to content

Commit 8f30451

Browse files
authored
Merge pull request kubernetes#75900 from neolit123/fix-upgrade-plan
kubeadm: fix "upgrade plan" not defaulting to a "stable" version
2 parents 615c491 + d6328f1 commit 8f30451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/kubeadm/app/cmd/upgrade/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func enforceRequirements(flags *applyPlanFlags, dryRun bool, newK8sVersion strin
154154
}
155155

156156
// Use a real version getter interface that queries the API server, the kubeadm client and the Kubernetes CI system for latest versions
157-
return client, upgrade.NewOfflineVersionGetter(upgrade.NewKubeVersionGetter(client, os.Stdout), cfg.KubernetesVersion), cfg, nil
157+
return client, upgrade.NewOfflineVersionGetter(upgrade.NewKubeVersionGetter(client, os.Stdout), newK8sVersion), cfg, nil
158158
}
159159

160160
// printConfiguration prints the external version of the API to yaml

0 commit comments

Comments
 (0)