-
Notifications
You must be signed in to change notification settings - Fork 4.8k
USHIFT-285: Add MicroShift version getter to framework #27345
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
Conversation
|
Skipping CI for Draft Pull Request. |
|
/retest-required |
1 similar comment
|
/retest-required |
|
/retest-required |
2 similar comments
|
/retest-required |
|
/retest-required |
|
The implementation looks good. Are those CI job failures related? |
Not really, this function is not used yet. Anyway I tmeporarily removed the call from |
|
/retest-required |
dhellmann
left a comment
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.
One nit that can be addressed later.
/approve
|
/retitle USHIFT-285: Add MicroShift version getter to framework |
dhellmann
left a comment
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
|
/assign @knobunc |
|
/retest-required |
3 similar comments
|
/retest-required |
|
/retest-required |
|
/retest-required |
|
/assign @ingvagabund |
| defer microShiftMutex.Unlock() | ||
|
|
||
| if microShiftVersion == "" { | ||
| cm, err := ocClient.AdminKubeClient().CoreV1().ConfigMaps("kube-public").Get(context.Background(), "microshift-version", metav1.GetOptions{}) |
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.
I don't see any microshift-version CM under kube-public NS in ocp 4.12 vanilla cluster. Meaning get request for the CM will get requested every time a test invoking IsMicroShiftDeployment gets running. What about introducing another microShiftVersionCMNotFound variable and setting it to false when err != nil && apierrors.IsNotFound(err)? Then if microShiftVersionCMNotFound { return "" } before if microShiftVersion == "" {? Or similar mechanism against re-getting microshift-version` CM.
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.
Done
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dhellmann, pacevedom The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/hold let's see where this is needed instead of using existing external signals before merging. |
0225280 to
648b238
Compare
|
New changes are detected. LGTM label has been removed. |
|
@pacevedom: The following tests failed, say
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. |
So it's these tests now: More to come as we create/modify specific tests for microshift, I would say. |
|
Not needed anymore, as we look for dependencies in each test. |
Add a function to determine if the cluster is a MicroShift instance.