-
Notifications
You must be signed in to change notification settings - Fork 120
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
Bugfix: Drain machines with only a valid NodeName #480
Bugfix: Drain machines with only a valid NodeName #480
Conversation
a5f18a5
to
2da2e4f
Compare
2da2e4f
to
3484d7c
Compare
/kind regression |
@prashanth26 Command |
@@ -599,7 +599,9 @@ func (c *controller) machineDelete(machine *v1alpha1.Machine, driver driver.Driv | |||
} | |||
} | |||
|
|||
if machineID != "" { | |||
if machineID != "" && nodeName != "" { | |||
// Begin drain logic only when the nodeName & providerID exist's for the machine |
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.
// Begin drain logic only when the nodeName & providerID exist's for the machine | |
// Begin drain logic only when the nodeName & providerID exists for the machine |
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.
Do we need this change also in OOT?
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.
Looks good, just a minor comment.
@@ -599,7 +599,9 @@ func (c *controller) machineDelete(machine *v1alpha1.Machine, driver driver.Driv | |||
} | |||
} | |||
|
|||
if machineID != "" { | |||
if machineID != "" && nodeName != "" { | |||
// Begin drain logic only when the nodeName & providerID exist's for the machine |
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.
Do we need this change also in OOT?
893ee56
to
66fee5c
Compare
Nice catch. Even I thought about it, although I think the OOT will not run into such a situation. I have added this check just to be safe. Here - 66fee5c Also if all looks good, please squash and merge it. Thanks. |
Hi @ggaurav10 , Nice catch with this. Made the suggested change here - 0a7d3b5 |
0a7d3b5
to
b2ea619
Compare
/lgtm |
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #465
Special notes for your reviewer:
Release note: