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
log.Info(fmt.Sprintf("found multiple valid InstallPlans. using %s because it's the newest", currentInstallPlan.Name))
229
267
}
268
+
// No InstallPlan with the expected operator version was found,
269
+
// but the next one in the upgrade graph exists.
270
+
// Return the next InstallPlan to continue the upgrade.
271
+
ifcurrentInstallPlan==nil&&nextInstallPlan!=nil {
272
+
log.Info("next install plan time")
273
+
// The condition below prevents approving an InstallPlan
274
+
// that targets a version beyond the expected operator version.
275
+
// This can happen when:
276
+
// - InstallPlan with the expected version is complete (no approval needed).
277
+
// - Newer versions exist in the upgrade graph.
278
+
// The check ensures that the currently running CSV is different
279
+
// from the expected version. Once they match, no further action is needed.
280
+
ifsubscription.Status.InstalledCSV!=version {
281
+
log.Info("installplan with expected operator version was not found; proceedng with an intermedite installplan", "name", nextInstallPlan.Name, "csv", subscription.Status.CurrentCSV)
0 commit comments