-
Notifications
You must be signed in to change notification settings - Fork 807
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 v1 Karpenter disrupted taint to pre-stop hook #2166
Add v1 Karpenter disrupted taint to pre-stop hook #2166
Conversation
Code Coverage Diff
|
/retest windows flake for volume expansion |
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.
One minor change otherwise lgtm
b420df6
to
74319cd
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.
/lgtm
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: torredil 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 |
/retest |
@ElijahQuinones Not a flake, need to reformat the module import |
74319cd
to
361df2c
Compare
/unhold |
/lgtm |
Is this a bug fix or adding new feature?
Bug fix
What is this PR about? / Why do we need it?
Fixes #2158
Our pre-stop hook attempts to keep the EBS CSI Driver node plugin alive while node is being drained so that it can Unstage/Unpublish all volumes and report that to Kubelet before node termination. Karpenter v1 changed their disruption taint, so we need to update our pre-stop hook to check for it.
We also remove the dependency on Karpenter because we are compatible with multiple versions of it, and switch to just checking taint key instead of taint key and effect in case these auto-scalars switch to a
NoExecute
effect.What testing is done?
New unit tests.
TODO test with karpenter v1.