未验证 提交 f5ce7d9e 编写于 作者: M Medya Ghazizadeh 提交者: GitHub

Merge pull request #6292 from afbjorklund/profile-version

Handle empty k8s version in existing profile
......@@ -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
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册