-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🏃[e2e] add mhc test #3029
🏃[e2e] add mhc test #3029
Conversation
e293c6f
to
230d1a1
Compare
Following the decision of not supporting empty machine healthcheck labels here (#3006), this test disallows having a mhc without labels. |
/assign @fabriziopandini @benmoss |
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.
@sedefsavas
My main concern for this PR is that DiscoverMachineHealthChecksAndWaitForRemediation is doing a complex sequence and I would like to break down this in smaller parts that can be reused for MHC remediation test. what about
- Avoiding patching labels by setting labels upfront in the cluster template,
- Implementing the following sequence in the spec
- CreateWorloadCluster (get cluster, mds)
- DiscoveryMHCs
- PatchCondition on mds[0], first machine)
- Wait for remediation to happen
/hold |
809b231
to
3d9953c
Compare
/hold cancel This PR is ready. cc @fabriziopandini |
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'm still not 100% sold of the approach that goes back from MHC to machines, but I think this can be acceptable from the first iteration so lgtm for me after fixing two small nits
4983f13
to
1741057
Compare
@fabriziopandini what do you have in mind as a better approach to trigger MHC other than patching node condition? Asking for future improvement. |
/approve @sedefsavas I'm ok with how we trigger remediation. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini, sedefsavas 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 |
What this PR does / why we need it:
This PR adds machine health check e2e tests.
/assign @fabriziopandini