mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-10-29 17:32:47 +00:00
Initialize scheduler cache with assigned non-terminated pods before scheduling.
This commit is contained in:
@@ -94,6 +94,8 @@ func Run(s *options.SchedulerServer) error {
|
||||
stop := make(chan struct{})
|
||||
defer close(stop)
|
||||
informerFactory.Start(stop)
|
||||
// Waiting for all cache to sync before scheduling.
|
||||
informerFactory.WaitForCacheSync(stop)
|
||||
|
||||
run := func(_ <-chan struct{}) {
|
||||
sched.Run()
|
||||
|
||||
Reference in New Issue
Block a user