OTA-1165: adm upgrade status: Add Worker Node Status - #1689
Conversation
|
@Davoska: This pull request references OTA-1165 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.16.0" version, but no target version was set. DetailsIn 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. |
|
Skipping CI for Draft Pull Request. |
|
/test all |
|
/retest |
Update the old examples to contain information regarding worker pools.
fac14d9 to
ca178cd
Compare
|
@Davoska: This pull request references OTA-1165 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.16.0" version, but no target version was set. DetailsIn 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. |
|
/retest |
1 similar comment
|
/retest |
|
/retitle OTA-1165: |
adm upgrade status: Add Worker Node Status
After the control plane is updated, the correct update duration should still be displayed. Originally, the duration would start over after a control plane is updated because the LastTransitionTime would change in the Progressing condition.
The original values were displayed incorrectly and didn't sum to a correct value.
The needed MCO logic for worker node status is copied over from the machine-config-operator repository [1]. The required files are copied over and slightly modified if needed. This is done because vendoring the original packages from [1] results in massive vendoring changes due to a small experimental functionality that will be eventually removed and carried over to a server. The alternative is to vendor the original packages and introduce the massive vendoring changes. [1] https://github.com/openshift/machine-config-operator/tree/11d5151a784c7d4be5255ea41acfbf5092eda592
Steps:
go mod vendor
bef8d91 to
092156a
Compare
petr-muller
left a comment
There was a problem hiding this comment.
🎉
Really nice job, thanks 👍
|
/lgtm |
|
/cc @ardaguclu Arda, can we have an |
ardaguclu
left a comment
There was a problem hiding this comment.
Vendor changes look good to me;
/approve
| @@ -0,0 +1,162 @@ | |||
| apiVersion: v1 | |||
There was a problem hiding this comment.
nit: Do we really need to all these examples that are unnecessarily increasing repo size?
There was a problem hiding this comment.
I agree the inputs grew a bit :( I do not expect us to add more testcases but I think we'll eventually need more inputs; I'll make sure we come up with some solution until then, maybe write a script that prunes the mock data from unnecessary members or something similar.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ardaguclu, Davoska, petr-muller The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@Davoska: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
[ART PR BUILD NOTIFIER] This PR has been included in build openshift-enterprise-cli-container-v4.16.0-202403070215.p0.g45fe5d4.assembly.stream.el8 for distgit openshift-enterprise-cli. |
|
Thank you, @petr-muller, for all the suggestions, recommendations, and tips on and off GitHub! It made this pull request much better 🎉 |
The goal of this pull request is to display additional information upon executing
oc adm upgrade status.The new additional information being the status of worker pools and nodes.
An example of an output:
This pull request references https://issues.redhat.com//browse/OTA-1165