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
pkg/cli/admin/upgrade/recommend: Enable precheck and accept gates
To make that functionality generally available. This could be a more
thorough overhaul, e.g. I could drop the precheckEnabled knob
entirely. But I'm doing the smallest possible pivot now, in case
folks want to backport to older 4.y. And I can do the dev-branch
polishing later on.
The:
error: issues that apply to this cluster but which were not included in --accept: AlertNoTestData,ConditionalUpdateRisk
output that b74a129 (pkg/cli/admin/upgrade/recommend: Don't error
on unaccepted issues when the feature gate is off, 2025-08-02, #2069)
had removed from the test fixtures is back, now that the accept gate
is enabled by default (and thus newly enabled for the test suite).
Copy file name to clipboardExpand all lines: pkg/cli/admin/upgrade/recommend/examples/4.12.16-longest-not-recommended.version-4.12.51-output
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,3 +15,5 @@ Reason: MultipleReasons
15
15
Message: An unintended reversion to the default kubelet nodeStatusReportFrequency can cause significant load on the control plane. https://issues.redhat.com/browse/MCO-1094
16
16
17
17
After rebooting into kernel-4.18.0-372.88.1.el8_6 or later, kernel nodes experience high load average and io_wait times. The nodes might fail to start or stop pods and probes may fail. Workload and host processes may become unresponsive and workload may be disrupted. https://issues.redhat.com/browse/COS-2705
18
+
19
+
error: issues that apply to this cluster but which were not included in --accept: AlertNoTestData,ConditionalUpdateRisk
Copy file name to clipboardExpand all lines: pkg/cli/admin/upgrade/recommend/examples/4.12.16-longest-recommended.version-4.12.51-output
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,3 +15,5 @@ Reason: MultipleReasons
15
15
Message: An unintended reversion to the default kubelet nodeStatusReportFrequency can cause significant load on the control plane. https://issues.redhat.com/browse/MCO-1094
16
16
17
17
After rebooting into kernel-4.18.0-372.88.1.el8_6 or later, kernel nodes experience high load average and io_wait times. The nodes might fail to start or stop pods and probes may fail. Workload and host processes may become unresponsive and workload may be disrupted. https://issues.redhat.com/browse/COS-2705
18
+
19
+
error: issues that apply to this cluster but which were not included in --accept: AlertNoTestData,ConditionalUpdateRisk
flags.BoolVar(&o.showOutdatedReleases, "show-outdated-releases", o.showOutdatedReleases, "Display additional older releases. These releases may be exposed to known issues which have been fixed in more recent releases. But all updates will contain fixes not present in your current release.")
63
63
flags.StringVar(&o.rawVersion, "version", o.rawVersion, "Select a particular target release to display by version.")
flags.BoolVar(&o.quiet, "quiet", o.quiet, "When --quiet is true and --version is set, only print unaccepted issue names.")
67
-
flags.StringSliceVar(&o.accept, "accept", o.accept, "Comma-delimited names for issues that you find acceptable. With --version, any unaccepted issues will result in a non-zero exit code.")
68
-
}
65
+
flags.BoolVar(&o.quiet, "quiet", o.quiet, "When --quiet is true and --version is set, only print unaccepted issue names.")
66
+
flags.StringSliceVar(&o.accept, "accept", o.accept, "Comma-delimited names for issues that you find acceptable. With --version, any unaccepted issues will result in a non-zero exit code.")
69
67
70
68
flags.StringVar(&o.mockData.cvPath, "mock-clusterversion", "", "Path to a YAML ClusterVersion object to use for testing (will be removed later).")
returnfmt.Errorf("issues that apply to this cluster but which were not included in --accept: %s", strings.Join(sets.List(unaccepted), ","))
349
-
} elseifissues.Len() >0&&!o.quiet {
350
-
fmt.Fprintf(o.Out, "Update to %s has no known issues relevant to this cluster other than the accepted %s.\n", update.Release.Version, strings.Join(sets.List(issues), ","))
351
-
}
344
+
ifunaccepted.Len() >0 {
345
+
returnfmt.Errorf("issues that apply to this cluster but which were not included in --accept: %s", strings.Join(sets.List(unaccepted), ","))
346
+
} elseifissues.Len() >0&&!o.quiet {
347
+
fmt.Fprintf(o.Out, "Update to %s has no known issues relevant to this cluster other than the accepted %s.\n", update.Release.Version, strings.Join(sets.List(issues), ","))
0 commit comments