Skip to content

Commit

Permalink
Merge pull request kubernetes#75900 from neolit123/fix-upgrade-plan
Browse files Browse the repository at this point in the history
kubeadm: fix "upgrade plan" not defaulting to a "stable" version
  • Loading branch information
k8s-ci-robot authored Mar 30, 2019
2 parents 615c491 + d6328f1 commit 8f30451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kubeadm/app/cmd/upgrade/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func enforceRequirements(flags *applyPlanFlags, dryRun bool, newK8sVersion strin
}

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

// printConfiguration prints the external version of the API to yaml
Expand Down

0 comments on commit 8f30451

Please sign in to comment.