-
Notifications
You must be signed in to change notification settings - Fork 379
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
OTA-1271: Create the oc adm upgrade recommend
subcommand
#1863
OTA-1271: Create the oc adm upgrade recommend
subcommand
#1863
Conversation
@Davoska: This pull request references OTA-1271 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
/uncc ardaguclu deads2k |
/cc @petr-muller @wking |
/retest-required |
1 similar comment
/retest-required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
In case you want to address this nit:
/hold
But feel free to lift the hold without changing anything if you want to punt on expanding that string.
45582e9
to
4a41fb4
Compare
4a41fb4
to
083c3f0
Compare
Add the backbones for the new `oc adm upgrade recommend` subcommand. The logic is copied over from an existing package `upgrade` [1]. The logic is to be changed over the upcoming iterations of development. For the initial commit, the new `recommend` package contains the logic from the [1] package as of the [2] commit. Only the logic regarding the default output of the `oc adm upgrade` command and outputs regarding available or available but not recommended updates was copied over. This logic was placed behind a feature gate environment variable named `OC_ENABLE_CMD_UPGRADE_RECOMMEND`. The new subcommand can be tested by running: ``` $ OC_ENABLE_CMD_UPGRADE_RECOMMEND=true ./oc adm upgrade recommend ``` As most of the internal functions are not exported, the existing tests were copied over as well for the existing used functions in the new package `recommend`. [1] github.com/openshift/oc/pkg/cli/admin/upgrade [2] 93286c9
083c3f0
to
95933a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/hold cancel
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Davoska, 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 |
2 similar comments
/test all |
/retest |
/retest-required |
/hold Revision 95933a7 was retested 3 times: holding |
/retest |
/unhold |
4 similar comments
@Davoska: all tests passed! 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-sigs/prow repository. I understand the commands that are listed here. |
[ART PR BUILD NOTIFIER] Distgit: ose-tools |
[ART PR BUILD NOTIFIER] Distgit: openshift-enterprise-cli |
[ART PR BUILD NOTIFIER] Distgit: openshift-enterprise-deployer |
[ART PR BUILD NOTIFIER] Distgit: ose-cli-artifacts |
This PR will add the backbones for the new
oc adm upgrade recommend
subcommand.The logic is copied over from an existing
github.com/openshift/oc/pkg/cli/admin/upgrade
package. The logic is to be changed over the upcoming iterations of development.For the initial commit, the new
recommend
package contains the logic from thegithub.com/openshift/oc/pkg/cli/admin/upgrade
package as of the 93286c9 commit. Only the logic regarding the default output of theoc adm upgrade
command and outputs regarding available or available but not recommended updates was copied over.This logic was placed behind a feature gate environment variable named
OC_ENABLE_CMD_UPGRADE_RECOMMEND
. The new subcommand can be tested by running:As most of the internal functions are not exported, the existing tests were copied over as well for the existing used functions in the new package
recommend
.This pull request references https://issues.redhat.com/browse/OTA-1271