mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
remove annotation cache sync because of code removed
This commit is contained in:
parent
8f6ffb24df
commit
6a41d81264
2
pkg/scheduler/scheduler.go
Normal file → Executable file
2
pkg/scheduler/scheduler.go
Normal file → Executable file
@ -307,7 +307,7 @@ func initPolicyFromConfigMap(client clientset.Interface, policyRef *schedulerapi
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run begins watching and scheduling. It waits for cache to be synced, then starts scheduling and blocked until the context is done.
|
// Run begins watching and scheduling. It starts scheduling and blocked until the context is done.
|
||||||
func (sched *Scheduler) Run(ctx context.Context) {
|
func (sched *Scheduler) Run(ctx context.Context) {
|
||||||
sched.SchedulingQueue.Run()
|
sched.SchedulingQueue.Run()
|
||||||
wait.UntilWithContext(ctx, sched.scheduleOne, 0)
|
wait.UntilWithContext(ctx, sched.scheduleOne, 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user