Merge pull request #6292 from afbjorklund/profile-version
Handle empty k8s version in existing profilepull/6243/head
commit
f5ce7d9e74
|
@ -1165,9 +1165,10 @@ func getKubernetesVersion(old *cfg.MachineConfig) (string, bool) {
|
|||
isUpgrade := false
|
||||
|
||||
if paramVersion == "" { // if the user did not specify any version then ...
|
||||
if old != nil { // .. use the old version from config
|
||||
if old != nil { // .. use the old version from config (if any)
|
||||
paramVersion = old.KubernetesConfig.KubernetesVersion
|
||||
} else { // .. otherwise use the default version
|
||||
}
|
||||
if paramVersion == "" { // .. otherwise use the default version
|
||||
paramVersion = constants.DefaultKubernetesVersion
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue