mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 13:12:20 +00:00
Scheduler should use shared informer for pods
Previously, the scheduler created two separate list watchers. This changes the scheduler to be able to leverage a shared informer, whether passed in externally or spawned using the new in place method. This removes the last use of a "special" informer in the codebase. Allows someone wrapping the scheduler to use a shared informer if they have more information avaliable.
This commit is contained in:
@@ -65,6 +65,7 @@ func mustSetupScheduler() (schedulerConfigurator scheduler.Configurator, destroy
|
||||
v1.DefaultSchedulerName,
|
||||
clientSet,
|
||||
informerFactory.Core().V1().Nodes(),
|
||||
informerFactory.Core().V1().Pods(),
|
||||
informerFactory.Core().V1().PersistentVolumes(),
|
||||
informerFactory.Core().V1().PersistentVolumeClaims(),
|
||||
informerFactory.Core().V1().ReplicationControllers(),
|
||||
|
Reference in New Issue
Block a user