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

@@ -164,7 +164,7 @@ func initTestSchedulerWithOptions(
// create independent pod informer if required
if setPodInformer {
podInformer = factory.NewPodInformer(context.clientSet, 12*time.Hour, v1.DefaultSchedulerName)
podInformer = factory.NewPodInformer(context.clientSet, 12*time.Hour)
} else {
podInformer = context.informerFactory.Core().V1().Pods()
}