Skip to content

Commit f5ce7d9

Browse files
authored
Merge pull request #6292 from afbjorklund/profile-version
Handle empty k8s version in existing profile
2 parents ea3d1cd + 94b03ff commit f5ce7d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmd/minikube/cmd/start.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -1165,9 +1165,10 @@ func getKubernetesVersion(old *cfg.MachineConfig) (string, bool) {
11651165
isUpgrade := false
11661166

11671167
if paramVersion == "" { // if the user did not specify any version then ...
1168-
if old != nil { // .. use the old version from config
1168+
if old != nil { // .. use the old version from config (if any)
11691169
paramVersion = old.KubernetesConfig.KubernetesVersion
1170-
} else { // .. otherwise use the default version
1170+
}
1171+
if paramVersion == "" { // .. otherwise use the default version
11711172
paramVersion = constants.DefaultKubernetesVersion
11721173
}
11731174
}

0 commit comments

Comments
 (0)