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
The handling logic of versions that are pre-releases by the
`nextY()` func (that determines the next Y release) was erroneous.
Eg: `nextY("4.16.0")` returns "4.17" correctly, but `nextY("4.16.0-rc1")`
returns "4.16" (the correct value is still "4.17").
This PR fixes the `nextY` function.
Also has improvement for the "not-upgradeable to next OCP" version message.
Copy file name to clipboardExpand all lines: pkg/controller/operators/openshift/helpers.go
+5-20
Original file line number
Diff line number
Diff line change
@@ -105,8 +105,7 @@ func (s skew) String() string {
105
105
ifs.err!=nil {
106
106
returnfmt.Sprintf("%s/%s has invalid %s properties: %s", s.namespace, s.name, MaxOpenShiftVersionProperty, s.err)
107
107
}
108
-
109
-
returnfmt.Sprintf("%s/%s is incompatible with OpenShift minor versions greater than %s", s.namespace, s.name, s.maxOpenShiftVersion)
108
+
returnfmt.Sprintf("ClusterServiceVersions blocking upgrade to %s or higher. The maximum supported OCP version for %s/%s is %s", nextY(s.maxOpenShiftVersion).String(), s.namespace, s.name, s.maxOpenShiftVersion)
0 commit comments