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
don't gracefully delete terminated pods #15900
Conversation
Labelling this PR as size/XS |
GCE e2e build/test failed for commit fb5b1380029e73abd439b744cd64f56ba7616b07. |
fb5b138
to
5b1f36f
Compare
GCE e2e test build/test passed for commit 5b1f36f613f60925b8c9c273dc96daf38620142d. |
LGTM |
Add a test please though |
@@ -109,6 +109,10 @@ func (podStrategy) CheckGracefulDelete(obj runtime.Object, options *api.DeleteOp | |||
if len(pod.Spec.NodeName) == 0 { | |||
period = 0 | |||
} | |||
// if the pod is already terminated, delete immediately | |||
if pod.Status.Phase == api.PodFailed && pod.Status.Phase == api.PodSucceeded { |
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.
OR, not AND
5b1f36f
to
d0be6af
Compare
Added test for defaulted DeleteOptions |
Labelling this PR as size/M |
d0be6af
to
fbebf0e
Compare
func TestCheckGracefulDelete(t *testing.T) { | ||
|
||
defaultGracePeriod := int64(30) | ||
otherGracePeriod := int64(15) |
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.
unused?
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.
fixed
fbebf0e
to
c2c507e
Compare
GCE e2e test build/test passed for commit d0be6afb6417705689aa58c545b890a51618959e. |
PR changed after LGTM, removing LGTM. |
GCE e2e test build/test passed for commit fbebf0e63f0f123e47009a4e630f6692bc9afdd0. |
GCE e2e build/test failed for commit c2c507e368cc1e750d3bef394e0561a7e00886a5. |
ok to test |
GCE e2e build/test failed for commit c2c507e368cc1e750d3bef394e0561a7e00886a5. |
Flake Kubernetes e2e suite.Probing container with readiness probe should not be ready before initial delay and never restart [Conformance] @k8s-bot ok to test |
GCE e2e test build/test passed for commit c2c507e368cc1e750d3bef394e0561a7e00886a5. |
c2c507e
to
ac686d7
Compare
@ncdc PTAL |
@mikedanese looks good, thanks! |
GCE e2e test build/test passed for commit ac686d7. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e test build/test passed for commit ac686d7. |
don't gracefully delete terminated pods
@mikedanese Can you please file an issue under |
@ihmccreery we want this forever. |
…pick-of-#15153-kubernetes#15900-kubernetes#15930-upstream-release-1.1 Auto commit by PR queue bot
…pick-of-#15153-kubernetes#15900-kubernetes#15930-upstream-release-1.1 Auto commit by PR queue bot
No description provided.