Merge pull request #13374 from olemarkus/upgrade-empty-image

If image is empty, have kops upgrade fill it in
This commit is contained in:
Kubernetes Prow Robot 2022-03-17 02:37:19 -07:00 committed by GitHub
commit ff268c7d1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ func RunUpgradeCluster(ctx context.Context, f *util.Factory, out io.Writer, opti
klog.Warningf("No matching images specified in channel; cannot prompt for upgrade")
continue
}
if channel.HasUpstreamImagePrefix(ig.Spec.Image) {
if ig.Spec.Image == "" || channel.HasUpstreamImagePrefix(ig.Spec.Image) {
if ig.Spec.Image != image.Name {
target := ig
actions = append(actions, &upgradeAction{