-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Remove redundant pod deletion in scheduler predicates tests and fix taints-tolerations e2e #29423
Remove redundant pod deletion in scheduler predicates tests and fix taints-tolerations e2e #29423
Conversation
LGTM This is fine but I thought we delete the test namespace after every test regardless of whether it succeeds or fails, so all the pods should get cleaned up automatically? |
Yes - I agree with that. In my opinion this PR is no-op. In fact I actually think that we should do soemthing different, which is "get rid of all those "Delete pod" calls at all. If those tests are written correctly, those will be removed while deleting the namespace at the end of the test, otherwise, we should fix that. |
OK, removing LGTM. Kevin, what do you think? (Note that the PR does one other unrelated thing, the change at the end of the PR, which is unrelated to "cleaning up" pods.) |
LGTM Thanks! |
LGMT - thanks a lot! |
…aints-tolerations e2e
9dde331
to
57d22a1
Compare
GCE e2e build/test passed for commit 57d22a1. |
@davidopp squashed and rebased, PTAL |
LGTM |
@davidopp seems the PR is blocked by the bot, can you help to take a look? |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit 57d22a1. |
Automatic merge from submit-queue |
In scheduler predicates test, some tests won't clean pods they created when exit with failure, which may lead to pod leak. This PR is to fix it.Remove redundant pod deletion in scheduler predicates tests, since framework.AfterEach() already did the cleanup work after every test.
Also fix the test "validates that taints-tolerations is respected if not matching", refer to the change on taint-toleration test in #29003, and #24134 (comment).