mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Add func comment for MakeNextPodFunc
This commit is contained in:
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 {
|
func MakeNextPodFunc(queue SchedulingQueue) func() *v1.Pod {
|
||||||
return func() *v1.Pod {
|
return func() *v1.Pod {
|
||||||
pod, err := queue.Pop()
|
pod, err := queue.Pop()
|
||||||
|
Loading…
Reference in New Issue
Block a user