diff --git a/pkg/cvo/updatepayload.go b/pkg/cvo/updatepayload.go index f407a48d4f..f4adef48c8 100644 --- a/pkg/cvo/updatepayload.go +++ b/pkg/cvo/updatepayload.go @@ -306,8 +306,7 @@ func copyPayloadCmd(tdir string) string { } // findUpdateFromConfig identifies a desired update from user input or returns false. It will -// resolve payload if the user specifies a version and a matching available update or previous -// update is in the history. +// resolve payload if the user specifies a version and a matching available update. func findUpdateFromConfig(config *configv1.ClusterVersion) (configv1.Update, bool) { update := config.Spec.DesiredUpdate if update == nil { @@ -329,14 +328,5 @@ func findUpdateFromConfigVersion(config *configv1.ClusterVersion, version string }, true } } - for _, history := range config.Status.History { - if history.Version == version && len(history.Image) > 0 { - return configv1.Update{ - Version: version, - Image: history.Image, - Force: force, - }, true - } - } return configv1.Update{}, false }