We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ea3d1cd + 94b03ff commit f5ce7d9Copy full SHA for f5ce7d9
cmd/minikube/cmd/start.go
@@ -1165,9 +1165,10 @@ func getKubernetesVersion(old *cfg.MachineConfig) (string, bool) {
1165
isUpgrade := false
1166
1167
if paramVersion == "" { // if the user did not specify any version then ...
1168
- if old != nil { // .. use the old version from config
+ if old != nil { // .. use the old version from config (if any)
1169
paramVersion = old.KubernetesConfig.KubernetesVersion
1170
- } else { // .. otherwise use the default version
+ }
1171
+ if paramVersion == "" { // .. otherwise use the default version
1172
paramVersion = constants.DefaultKubernetesVersion
1173
}
1174
0 commit comments