-
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
🐛 Bubble up machine drain condition in MachinesReadyCondition
#9355
🐛 Bubble up machine drain condition in MachinesReadyCondition
#9355
Conversation
Welcome @typeid! |
Hi @typeid. 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. |
/ok-to-test |
Look reasonable to me /assign @enxebre @fabriziopandini @vincepri |
This is a breaking change because it changes the semantic of the Ready condition, but IMO it is a good change to have so I'm +1 (but we should change PR type) |
If this is a breaking change to our API (I don't know about the exact details of the policy for conditions), do we have to wait for the next apiVersion? |
I think it's technically a breaking change but in practice a UX bug fix so lgtm. This would only affect Machines that are already signalled for deletion. I can't think atm of any consumer that would be affected in that scenario. |
Sounds good to me. /lgtm (I'm fine either way regarding the PR title icon) |
LGTM label has been added. Git tree hash: 0f48c4ba1ff824023db49223f7b9b4a4f4057a6c
|
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vincepri 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 |
/hold Is it a breaking change? Not really sure, the condition is a summary of other conditions, if the drain doesn't go through, the summary never gets updated. Are we treating the finite set of watched conditions as an API? |
@vincepri judging by the above comments, my understanding is that we're fine categorizing this as a non-breaking/bugfix change. |
@vincepri Not sure I understand what you mean with this one:
Isn't the goal of this PR that the summary (aka ready condition) gets updated when the drain doesn't go through? |
My point was today's behavior, this PR fixes that which in my mind is a good thing |
Got it, sounds good to me |
Signed-off-by: Claudio Busse [email protected]
6fc100d
to
bb9639b
Compare
Rebased, should be good to go then :) |
/lgtm |
LGTM label has been added. Git tree hash: 8fa9900d27c3c2c80da823b615b35009b699b83f
|
/hold cancel |
What this PR does / why we need it:
As described in the issue, a failing drain can currently block a scalable resource scale down / delete operation transparently.
This PR attemps to fix this issue by adding
DrainingSucceededCondition
to the summary ofMachinesReadyCondition
, bubbling up the drain result in theMachineSet
and in theMachineDeployment
after #9262.Which issue(s) this PR fixes:
Fixes #9285
/area machine