mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
Merge pull request #68403 from wgliang/master.deprecate-Parallelize
Replace Parallelize with function ParallelizeUntil and formally depre…
This commit is contained in:
@@ -684,7 +684,7 @@ func PrioritizeNodes(
|
||||
}
|
||||
}
|
||||
}
|
||||
workqueue.Parallelize(16, len(nodes), processNode)
|
||||
workqueue.ParallelizeUntil(context.TODO(), 16, len(nodes), processNode)
|
||||
for i, priorityConfig := range priorityConfigs {
|
||||
if priorityConfig.Reduce == nil {
|
||||
continue
|
||||
@@ -915,7 +915,7 @@ func selectNodesForPreemption(pod *v1.Pod,
|
||||
resultLock.Unlock()
|
||||
}
|
||||
}
|
||||
workqueue.Parallelize(16, len(potentialNodes), checkNode)
|
||||
workqueue.ParallelizeUntil(context.TODO(), 16, len(potentialNodes), checkNode)
|
||||
return nodeToVictims, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user