Add function NominatedPodsForNode to PodNominator interface.

- replace SchedulingQueue with PodNominator in genericScheduler.
This commit is contained in:
Wei Huang
2020-05-20 11:38:21 -07:00
parent eb34058777
commit f4b726237a
6 changed files with 20 additions and 28 deletions

View File

@@ -510,4 +510,6 @@ type PodNominator interface {
DeleteNominatedPodIfExists(pod *v1.Pod)
// UpdateNominatedPod updates the <oldPod> with <newPod>.
UpdateNominatedPod(oldPod, newPod *v1.Pod)
// NominatedPodsForNode returns nominatedPods on the given node.
NominatedPodsForNode(nodeName string) []*v1.Pod
}