-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
enable and improve e2e of NoExecuteTaintManager #69657
enable and improve e2e of NoExecuteTaintManager #69657
Conversation
/sig scheduling |
/retest |
/kind feature |
test/e2e/scheduling/taints.go
Outdated
framework.Logf("Noticed Pod %q gets evicted.", podName) | ||
evicted++ | ||
if evicted == 2 { | ||
break FORLOOP |
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.
Why not changing for
to for evicted != 2
and remove this if
statement?
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.
Good point! Will update.
test/e2e/scheduling/taints.go
Outdated
} | ||
} | ||
} | ||
if evicted < 2 { |
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.
Given the above loop this will never be true.
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.
Exactly.
- e2e test file cannot end with "_test.go". rename "taints_test.go" to "taints.go" - test multiple pods case
789a918
to
8726ed2
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
Thanks, @Huang-Wei!
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Huang-Wei, k82cn 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 |
/retest Review the full test history for this PR. Silence the bot with an |
What this PR does / why we need it:
This PR is to enable and improve e2e of NoExecuteTaintManager - which is in charge of evicting pods which don't have required tolerations.
Notice that no matter
TaintBasedEvictions
is enabled or not, this e2e test is supposed to be working correctly.Which issue(s) this PR fixes:
Although it's a standalone PR, enabling it can gain more confidence to promote
TaintBasedEvictions
to beta.Special notes for your reviewer:
Once this is merged, it's supposed to be running regularly in test grid, and displayed in https://k8s-testgrid.appspot.com/sig-scheduling#gce-serial.
Release note: