mirror of https://github.com/k3s-io/k3s
Add func comment for MakeNextPodFunc
parent
554ad383e3
commit
8dc1e83946
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue