Skip to content

Commit e530102

Browse files
committed
ElasticQuota: add unit test for PostFilter & PodEligibleToPreemptOthers
1 parent aeb7ff2 commit e530102

File tree

2 files changed

+429
-4
lines changed

2 files changed

+429
-4
lines changed

pkg/capacityscheduling/capacity_scheduling.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ func (p *preemptor) PodEligibleToPreemptOthers(pod *v1.Pod, nominatedNodeStatus
423423
if preemptorWithEQ {
424424
moreThanMinWithPreemptor := preemptorEQInfo.usedOverMinWith(&preFilterState.nominatedPodsReqInEQWithPodReq)
425425
for _, p := range nodeInfo.Pods {
426+
// Checking terminating pods
426427
if p.Pod.DeletionTimestamp != nil {
427428
eqInfo, withEQ := elasticQuotaSnapshotState.elasticQuotaInfos[p.Pod.Namespace]
428429
if !withEQ {

0 commit comments

Comments
 (0)