cli: write target k8s version to config if new version is found on upgrade check (#1862)

This commit is contained in:
Malte Poll 2023-06-02 17:19:41 +02:00 committed by GitHub
parent b2527d314e
commit 7c34aef263
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -495,7 +495,7 @@ func (v *versionUpgrade) writeConfig(conf *config.Config, fileHandler file.Handl
if v.newServices != "" {
conf.MicroserviceVersion = v.newServices
}
if len(v.newServices) > 0 {
if len(v.newKubernetes) > 0 {
conf.KubernetesVersion = v.newKubernetes[0]
}
if len(v.newImages) > 0 {