- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for podInfoMap (0.36 sec)
-
pkg/scheduler/internal/queue/scheduling_queue.go
u.unschedulableRecorder.Inc() } } u.podInfoMap[podID] = pInfo } // delete deletes a pod from the unschedulable podInfoMap. // The `gated` parameter is used to figure out which metric should be decreased. func (u *UnschedulablePods) delete(pod *v1.Pod, gated bool) { podID := u.keyFunc(pod) if _, exists := u.podInfoMap[podID]; exists { if gated && u.gatedRecorder != nil { u.gatedRecorder.Dec()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 61.4K bytes - Viewed (0) -
pkg/scheduler/internal/queue/scheduling_queue_test.go
upm.delete(p, false) } if diff := cmp.Diff(test.expectedMapAfterDelete, upm.podInfoMap); diff != "" { t.Errorf("Unexpected map after deleting pods (-want, +got):\n%s", diff) } upm.clear() if len(upm.podInfoMap) != 0 { t.Errorf("Expected the map to be empty, but has %v elements.", len(upm.podInfoMap)) } }) } } func TestSchedulingQueue_Close(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 146.9K bytes - Viewed (0)