Add missing increments of queue_incoming_pods_total metric in scheduling queue

This commit is contained in:
Maciej Skoczeń
2025-02-25 13:05:33 +00:00
parent 566f939b19
commit 6975572a80
6 changed files with 98 additions and 51 deletions

View File

@@ -152,7 +152,7 @@ func TestBackoffQueue_popEachBackoffCompleted(t *testing.T) {
logger, _ := ktesting.NewTestContext(t)
bq := newBackoffQueue(fakeClock, DefaultPodInitialBackoffDuration, DefaultPodMaxBackoffDuration)
for _, podName := range tt.podsInBackoff {
bq.add(logger, podInfos[podName])
bq.add(logger, podInfos[podName], framework.EventUnscheduledPodAdd.Label())
}
var gotPods []string
bq.popEachBackoffCompleted(logger, func(pInfo *framework.QueuedPodInfo) {