update scheduler to use schedulerName selector

This commit is contained in:
Haoran Wang
2017-09-14 17:44:02 +08:00
parent 17f6833471
commit 4b185b4db9
6 changed files with 17 additions and 111 deletions

View File

@@ -79,8 +79,8 @@ func Run(s *options.SchedulerServer) error {
informerFactory := informers.NewSharedInformerFactory(kubeClient, 0)
// cache only non-terminal pods
podInformer := factory.NewPodInformer(kubeClient, 0)
podInformer := factory.NewPodInformer(kubeClient, 0, s.SchedulerName)
// Apply algorithms based on feature gates.
algorithmprovider.ApplyFeatureGates()