You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fmt.Fprintf(o.ErrOut, "warning: with --allow-not-recommended you have accepted the risks with %s and bypassing %s=%s %s: %s\n", o.To, c.Type, c.Status, c.Reason, c.Message)
returnfmt.Errorf("Can't look up image for version %s. %v", o.To, c.Message)
270
275
}
271
-
returnfmt.Errorf("No available updates, specify --to-image or wait for new updates to be available")
276
+
returnfmt.Errorf("No recommended or conditional updates, specify --to-image or wait for new updates to be available")
272
277
}
278
+
returnfmt.Errorf("The update %s is not one of the recommended or conditional updates", o.To)
279
+
caseupdate==nil&&conditionalUpdate!=nil:
280
+
if!o.AllowNotRecommended {
281
+
returnfmt.Errorf("The update %s is not one of the recommended updates. But it is available as a conditional update. To accept the risk and to proceed with update use --allow-not-recommended flag", o.To)
282
+
}
283
+
caseupdate!=nil&&conditionalUpdate==nil:
273
284
ifo.AllowNotRecommended {
274
-
returnfmt.Errorf("The update %s is not one of the conditional or recommended updates", o.To)
285
+
returnfmt.Errorf("The update %s is not available as a conditional update but available as a recommended update. To proceed with the update do not use --allow-not-recommended flag", o.To)
275
286
}
276
-
returnfmt.Errorf("The update %s is not one of the available updates: %s", o.To, strings.Join(versionStrings(cv.Status.AvailableUpdates), ", "))
287
+
}
288
+
289
+
//if user has used --allow-not-recommended and the version is present in conditional edges then the update should proceed
0 commit comments