-
Notifications
You must be signed in to change notification settings - Fork 19
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
Node Drain Logic: Allow users to force node drain #197
Conversation
Related to: #196 |
Thank you! |
We could retry draining I think, but I wouldn't force it by default, as it will bypass PDB, which may cause production issues for people. And I don't think such breaking change would be justified here. |
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.
Thanks for your contribution @jescarri! The PR is simple and looks good. I suggested some changes to CLI flag description and to add a test case for it which I would like to be added, otherwise it should be fine for merging.
513842e
to
2568ef2
Compare
@invidian thanks for taking a look at this, all comments have been resolved. |
If pods can't be drained due to a PDB the controller fails to drain the node and crashes. F0706 23:17:17.114069 3022288 main.go:88] Error running agent: processing: getting pods for deletion: [cannot delete Pods declare no controller (use --force to override): test/test-iscsi] This PR allows users to force drains.
2568ef2
to
296c2b6
Compare
Thanks again for your contribution @jescarri! Is this something you would like to see released soon? We usually do FLUO releases on demand, hence the question :) |
@invidian releasing a new version would be great. Appreciate the flexibility on the ad-hoc release!. |
I'll do a round of updates then and work on a release, thanks again for feedback. |
|
[Allow users to force node drain]
If pods can't be drained due to a PDB the controller fails to drain the node and crashes.
F0706 23:17:17.114069 3022288 main.go:88] Error running agent: processing: getting pods for deletion: [cannot delete Pods declare no controller (use --force to override): test/test-iscsi]
This PR allows users to force drains.
How to use
Run the update-agent with -force-drain=true
Testing done
Deployed the patched update agent into a cluster that had workloads with PDBs that could not be disrupted and the update finished.
changelog/
directory (user-facing change, bug fix, security fix, update)/boot
and/usr
size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.Closes #196