-
Notifications
You must be signed in to change notification settings - Fork 40.3k
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
Give terminal phase correctly to all pods that will not be restarted #115331
Merged
k8s-ci-robot
merged 2 commits into
kubernetes:master
from
mimowo:kubelet-fail-pending-deleted-pods
Mar 16, 2023
Merged
Give terminal phase correctly to all pods that will not be restarted #115331
k8s-ci-robot
merged 2 commits into
kubernetes:master
from
mimowo:kubelet-fail-pending-deleted-pods
Mar 16, 2023
+604
−233
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/retest |
a92f690
to
7b6e430
Compare
649b111
to
c4593d8
Compare
/retest |
/test pull-kubernetes-node-crio-cgrpv2-e2e-kubetest2 |
c6c606f
to
5f9af1f
Compare
This was referenced May 2, 2023
Approved. |
1 similar comment
Approved. |
This was referenced Jun 12, 2023
This was referenced Sep 18, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
approved
Indicates a PR has been approved by an approver from all required OWNERS files.
area/e2e-test-framework
Issues or PRs related to refactoring the kubernetes e2e test framework
area/kubelet
area/test
cncf-cla: yes
Indicates the PR's author has signed the CNCF CLA.
kind/feature
Categorizes issue or PR as related to a new feature.
lgtm
"Looks good to me", indicates that a PR is ready to be merged.
priority/important-longterm
Important over the long term, but may not be staffed and/or may need multiple releases to complete.
release-note-action-required
Denotes a PR that introduces potentially breaking changes that require user action.
sig/cloud-provider
Categorizes an issue or PR as relevant to SIG Cloud Provider.
sig/node
Categorizes an issue or PR as relevant to SIG Node.
sig/testing
Categorizes an issue or PR as relevant to SIG Testing.
size/XL
Denotes a PR that changes 500-999 lines, ignoring generated files.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
wg/batch
Categorizes an issue or PR as relevant to WG Batch.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
/kind feature
What this PR does / why we need it:
This is needed to make sure all pods are eventually transitioned to a terminal phase (Failed or Succeeded). Currently, running pods with RestartPolicy equals
OnFailure
orAlways
are not transitioned to a terminal phase.The case for
OnFailure
is problematic for jobs:deletionTimestamp
to determine if a pod is failed (which can actually end up succeeded). See related Issue:Job controller should wait for Pods to terminate to match the failure policy #113855 (superseded by Job controller should wait for Pods to be in a terminal phase before considering them failed or succeeded #116858).
Which issue(s) this PR fixes:
Special notes for your reviewer:
This PR extends the scope from the PR to transition not only Pending pods, but also Running.
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: