Scheduler should use a shared informer

Can be used either from a true shared informer or a local shared
informer created just for the scheduler.
This commit is contained in:
Clayton Coleman
2017-05-22 10:15:57 -04:00
parent 027c31e7dc
commit 8cd95c78c4
12 changed files with 196 additions and 38 deletions

View File

@@ -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(),