From 8dc1e839467d1de98e527fcbf8352e2f5bd1e59f Mon Sep 17 00:00:00 2001 From: danielqsj Date: Tue, 8 Jan 2019 11:07:47 +0800 Subject: [PATCH] Add func comment for MakeNextPodFunc --- pkg/scheduler/internal/queue/scheduling_queue.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/scheduler/internal/queue/scheduling_queue.go b/pkg/scheduler/internal/queue/scheduling_queue.go index 0278d5833d..c0c65544cf 100644 --- a/pkg/scheduler/internal/queue/scheduling_queue.go +++ b/pkg/scheduler/internal/queue/scheduling_queue.go @@ -809,6 +809,8 @@ func newNominatedPodMap() *nominatedPodMap { } } +// MakeNextPodFunc returns a function to retrieve the next pod from a given +// scheduling queue func MakeNextPodFunc(queue SchedulingQueue) func() *v1.Pod { return func() *v1.Pod { pod, err := queue.Pop()