If image is empty, have kops upgrade fill it in

This commit is contained in:
Ole Markus With 2022-03-16 20:15:51 +01:00
parent 6151a11e63
commit ba06b33193
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{