kubernetes/pkg/scheduler/internal/queue
Patrick Ohly 819eddaf9a scheduler: fix TestIncomingPodsMetrics unit test
addUnschedulablePodBackToBackoffQ happened to put the pod into the backoff
queue because
- the pod was not popped earlier and thus not in flight
- the PodInfo had UnschedulablePlugins set
- determineSchedulingHintForInFlightPod has code for "if UnschedulablePlugins
  is set and pod not in flight -> internal error, use backoff"

Relying on such special code is not good. A better way to force backoff is by
recording some concurrent event. isPodWorthRequeuing then calls the
queueHintReturnQueueAfterBackoff function and the pod goes to the backoff
queue.
2023-09-12 08:38:53 +02:00
..
events.go scheduler: cleanup the unused event types about Service 2022-10-03 16:30:38 +08:00
scheduling_queue_test.go scheduler: fix TestIncomingPodsMetrics unit test 2023-09-12 08:38:53 +02:00
scheduling_queue.go fix(scheduling_queue): always put Pods with no unschedulable plugins into activeQ/backoffQ (#119105) 2023-09-11 09:30:11 -07:00
testing.go reuse InformerFactory in scheduler tests (#107835) 2022-02-09 16:53:58 -08:00