Merge pull request #115970 from kannon92/lingering-tracking

left over uncounted from tracking cleanup
This commit is contained in:
Kubernetes Prow Robot 2023-02-22 09:57:57 -08:00 committed by GitHub
commit 173dde2a8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1563,7 +1563,7 @@ func countValidPodsWithFilter(job *batch.Job, pods []*v1.Pod, uncounted sets.Str
uid := string(p.UID) uid := string(p.UID)
// Pods that don't have a completion finalizer are in the uncounted set or // Pods that don't have a completion finalizer are in the uncounted set or
// have already been accounted for in the Job status. // have already been accounted for in the Job status.
if uncounted != nil && (!hasJobTrackingFinalizer(p) || uncounted.Has(uid) || expectedRmFinalizers.Has(uid)) { if !hasJobTrackingFinalizer(p) || uncounted.Has(uid) || expectedRmFinalizers.Has(uid) {
continue continue
} }
if isIndexedJob(job) { if isIndexedJob(job) {