-
Notifications
You must be signed in to change notification settings - Fork 979
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
re-enable the PDB eviction test #1334
Conversation
✔️ Deploy Preview for karpenter-docs-prod canceled. 🔨 Explore the source changes: 1f52116 🔍 Inspect the deploy log: https://app.netlify.com/sites/karpenter-docs-prod/deploys/620aa62b3d026300087dedad |
// kube-controller-manager normally does this, but we don't have one. If this isn't modified | ||
// the eviction controller assumes that the PDB hasn't been processed by the disruption controller | ||
// yet and adds a 10 second retry to our evict() call | ||
pdb.Status.ObservedGeneration = 1 |
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.
Can we include this in the test.PodDisruptionBudget
library? We will then need to use ExpectCreatedWithStatus on it.
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.
Yup, done, the update call required the ResourceVersion
to match, I thought that was with everything so I'm not sure why it only showed up for the PDB.
3ace514
to
ee5c7aa
Compare
- the pod must be in a non-pending state for eviction to consider the PDB - the Status.ObservedGeneration must be >= the pdb.Generation or the eviction results in a 429 retry with a 10 second delay Fixes aws#638
ee5c7aa
to
1f52116
Compare
1. Issue, if available:
#638
2. Description of changes:
3. How was this change tested?
Unit testing
4. Does this change impact docs?
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.