Commit b74a129
committed
pkg/cli/admin/upgrade/recommend: Don't error on unaccepted issues when the feature gate is off
When OC_ENABLE_CMD_UPGRADE_RECOMMEND_ACCEPT is not set to true, the
--accept option does not exist. In that case, we don't want to error
with [1]:
error: issues that apply to this cluster but which were not included in --accept: ConditionalUpdateRisk
Instead, we just want to exit happily, because we've already mentioned
the issue earlier in the message.
[1]: https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/29831/pull-ci-openshift-origin-main-e2e-aws-ovn-serial-1of2/19516539298423808001 parent ea45cd5 commit b74a129
File tree
4 files changed
+6
-10
lines changed- pkg/cli/admin/upgrade/recommend
- examples
4 files changed
+6
-10
lines changedLines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
349 | 351 | | |
350 | 352 | | |
351 | 353 | | |
| |||
0 commit comments