mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 05:21:58 +00:00
Merge pull request #125997 from mimowo/job-comment-cleanup
Cleanup TODO comment in the Job controller
This commit is contained in:
commit
135f2e0372
@ -1879,9 +1879,6 @@ func isPodFailed(p *v1.Pod, job *batch.Job) bool {
|
||||
if feature.DefaultFeatureGate.Enabled(features.PodDisruptionConditions) && feature.DefaultFeatureGate.Enabled(features.JobPodFailurePolicy) && job.Spec.PodFailurePolicy != nil {
|
||||
// When PodDisruptionConditions is enabled, orphan Pods and unschedulable
|
||||
// terminating Pods are marked as Failed. So we only need to check the phase.
|
||||
// TODO(#113855): Stop limiting this behavior to Jobs with podFailurePolicy.
|
||||
// For now, we do so to avoid affecting all running Jobs without the
|
||||
// availability to opt-out into the old behavior.
|
||||
return p.Status.Phase == v1.PodFailed
|
||||
}
|
||||
if p.Status.Phase == v1.PodFailed {
|
||||
|
Loading…
Reference in New Issue
Block a user