-
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
🌱 Add conditions to MachinePool #3627
🌱 Add conditions to MachinePool #3627
Conversation
Hi @srm09. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/assign @CecileRobertMichon @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.
overall lgtm, is there a reason this is still a draft PR @srm09 ?
/ok-to-test |
@CecileRobertMichon I was working on a condition to report the status of the replicas managed by the machine pool, the one I was talking about in #3497 (comment) |
fc42837
to
84cf008
Compare
84cf008
to
251afad
Compare
Waiting to manually verify. |
@srm09 if you want this held, use the Prow command |
/hold |
251afad
to
150b0a7
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.
explanations and thoughts
} else { | ||
conditions.MarkTrue(mp, expv1.ReplicasReadyCondition) | ||
} |
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.
Maybe I should avoid this one, since the pre-reqs to mark the machinepool ready is as described on line 56. Any thoughts?
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.
Seems like 56 covers the case where we have already reconciled these machines, but in case we need to do it again, we should definitely recalculate the final state
@@ -29,10 +29,10 @@ import ( | |||
"k8s.io/utils/pointer" | |||
clusterv1 "sigs.k8s.io/cluster-api/api/v1alpha3" | |||
expv1 "sigs.k8s.io/cluster-api/exp/api/v1alpha3" | |||
"sigs.k8s.io/cluster-api/test/helpers" |
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.
Changed this to use the helpers
package, since patching the conditions requires the ResourceVersion to be set.
/unhold |
/test pull-cluster-api-test |
/test pull-cluster-api-verify-external-links |
150b0a7
to
59e71b0
Compare
|
} else { | ||
conditions.MarkTrue(mp, expv1.ReplicasReadyCondition) | ||
} |
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.
Seems like 56 covers the case where we have already reconciled these machines, but in case we need to do it again, we should definitely recalculate the final state
/assign @CecileRobertMichon |
@srm09 please squash the commits |
@srm09: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
This patch adds the conditions to the machinepool object. Signed-off-by: Sagar Muchhal <muchhals@vmware.com> Co-authored-by: Vince Prignano <vince@vincepri.com>
8eb2ed7
to
aeae5c3
Compare
@CecileRobertMichon PTAL |
/retitle 🌱 Add conditions to MachinePool |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CecileRobertMichon 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 |
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
/milestone v0.3.10
What this PR does / why we need it:
Adds conditions to machinepool controllers
Which issue(s) this PR fixes:
Fixes #3497