Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding the flag --allow-not-recommended to oc adm upgrade #986

Conversation

LalatenduMohanty
Copy link
Member

@LalatenduMohanty LalatenduMohanty commented Dec 3, 2021

So that users can upgrade to a version listed in Supported but not
recommended updates. The list of versions can be seen with oc adm upgrade --include-not-recommended
For details refer to https://github.com/openshift/enhancements/blob/2cc2d9b331532c852878a7c793f3a754914c824e/enhancements/update/targeted-update-edge-blocking.md

https://issues.redhat.com/browse/OTA-528

Signed-off-by: Lalatendu Mohanty lmohanty@redhat.com

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 3, 2021
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 3, 2021
@LalatenduMohanty LalatenduMohanty changed the title [WIP] Adding the flag --allow-not-recommended to oc adm upgrade Adding the flag --allow-not-recommended to oc adm upgrade Dec 3, 2021
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 3, 2021
@LalatenduMohanty
Copy link
Member Author

/test verify

@LalatenduMohanty
Copy link
Member Author

/test e2e-aws-upgrade

@LalatenduMohanty LalatenduMohanty force-pushed the ota-528-flag-allow-not-recommended branch 2 times, most recently from f2b848a to 4f9eee6 Compare December 3, 2021 22:02
@LalatenduMohanty LalatenduMohanty force-pushed the ota-528-flag-allow-not-recommended branch from 4f9eee6 to 7316d19 Compare December 7, 2021 19:24
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 14, 2021

@LalatenduMohanty: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-metal-ipi-ovn-ipv6 55b2321 link false /test e2e-metal-ipi-ovn-ipv6
ci/prow/e2e-agnostic-cmd 55b2321 link true /test e2e-agnostic-cmd
ci/prow/e2e-aws-upgrade 55b2321 link true /test e2e-aws-upgrade

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

So that users can upgrade to a version listed in Supported but not
recommended updates. The list of versions can be seen with oc adm upgrade --include-not-recommended
For details refer to https://github.com/openshift/enhancements/blob/2cc2d9b331532c852878a7c793f3a754914c824e/enhancements/update/targeted-update-edge-blocking.md

Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com>
Copy link
Member

@wking wking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 17, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 17, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: LalatenduMohanty, wking

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

3 similar comments
@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 5d26d60 into openshift:master Dec 17, 2021
wking added a commit to wking/oc that referenced this pull request Apr 14, 2022
… together

6c8d935 (Adding the flag --allow-not-recommended to oc adm upgrade,
2021-12-01, openshift#986) taught --to and --to-image about
--allow-not-recommended.  This commit extends that coverage to
--to-latest, allowing folks to say "I want the latest supported
update, even if that update is not currently recommended".  Probably
not the best idea to do that sort of thing, but that's generally true
of --allow-not-recommended.

To accomplish this change, I've consolidated into a single "user
requested an update" case, where we use one of the three options
(--to-latest, --to, or --to-image) to hunt for a target update, and
then centralized logic to actually apply that target.
wking added a commit to wking/oc that referenced this pull request Apr 14, 2022
… together

6c8d935 (Adding the flag --allow-not-recommended to oc adm upgrade,
2021-12-01, openshift#986) taught --to and --to-image about
--allow-not-recommended.  This commit extends that coverage to
--to-latest, allowing folks to say "I want the latest supported
update, even if that update is not currently recommended".  Probably
not the best idea to do that sort of thing, but that's generally true
of --allow-not-recommended.

To accomplish this change, I've consolidated into a single "user
requested an update" case, where we use one of the three options
(--to-latest, --to, or --to-image) to hunt for a target update, and
then centralized logic to actually apply that target.
wking added a commit to wking/oc that referenced this pull request Apr 14, 2022
… together

6c8d935 (Adding the flag --allow-not-recommended to oc adm upgrade,
2021-12-01, openshift#986) taught --to and --to-image about
--allow-not-recommended.  This commit extends that coverage to
--to-latest, allowing folks to say "I want the latest supported
update, even if that update is not currently recommended".  Probably
not the best idea to do that sort of thing, but that's generally true
of --allow-not-recommended.

To accomplish this change, I've consolidated into a single "user
requested an update" case, where we use one of the three options
(--to-latest, --to, or --to-image) to hunt for a target update, and
then centralized logic to actually apply that target.
wking added a commit to wking/oc that referenced this pull request Apr 14, 2022
… together

6c8d935 (Adding the flag --allow-not-recommended to oc adm upgrade,
2021-12-01, openshift#986) taught --to and --to-image about
--allow-not-recommended.  This commit extends that coverage to
--to-latest, allowing folks to say "I want the latest supported
update, even if that update is not currently recommended".  Probably
not the best idea to do that sort of thing, but that's generally true
of --allow-not-recommended.

To accomplish this change, I've consolidated into a single "user
requested an update" case, where we use one of the three options
(--to-latest, --to, or --to-image) to hunt for a target update, and
then centralized logic to actually apply that target.
openshift-cherrypick-robot pushed a commit to openshift-cherrypick-robot/oc that referenced this pull request Apr 21, 2022
… together

6c8d935 (Adding the flag --allow-not-recommended to oc adm upgrade,
2021-12-01, openshift#986) taught --to and --to-image about
--allow-not-recommended.  This commit extends that coverage to
--to-latest, allowing folks to say "I want the latest supported
update, even if that update is not currently recommended".  Probably
not the best idea to do that sort of thing, but that's generally true
of --allow-not-recommended.

To accomplish this change, I've consolidated into a single "user
requested an update" case, where we use one of the three options
(--to-latest, --to, or --to-image) to hunt for a target update, and
then centralized logic to actually apply that target.
wking added a commit to wking/oc that referenced this pull request Jan 26, 2023
Cleaning up some nits from 6c8d935 (Adding the flag
--allow-not-recommended to oc adm upgrade, 2021-12-16, openshift#986).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants