Fix scheduler Pod informers to receive events when pods are scheduled by other schedulers.

This commit is contained in:
Bobby (Babak) Salamat
2018-04-23 04:17:25 -07:00
parent 719a56fa67
commit a073dfdbd9
3 changed files with 11 additions and 7 deletions

View File

@@ -476,7 +476,7 @@ func NewSchedulerServer(config *componentconfig.KubeSchedulerConfiguration, mast
SchedulerName: config.SchedulerName,
Client: client,
InformerFactory: informers.NewSharedInformerFactory(client, 0),
PodInformer: factory.NewPodInformer(client, 0, config.SchedulerName),
PodInformer: factory.NewPodInformer(client, 0),
AlgorithmSource: config.AlgorithmSource,
HardPodAffinitySymmetricWeight: config.HardPodAffinitySymmetricWeight,
EventClient: eventClient,