sched: start dynamicInformerFactory along with regular informerFactory (#105016)

* sched: start dynamicInformerFactory along with regular informerFactory

* fixup: start all informers and then wait for their syncs
This commit is contained in:
Wei Huang
2021-09-16 19:33:00 -07:00
committed by GitHub
parent 2f10e6587c
commit a689ad4cda
11 changed files with 51 additions and 25 deletions

View File

@@ -123,6 +123,7 @@ func initTestSchedulerWithOptions(
testCtx.scheduler, err = scheduler.New(
testCtx.clientSet,
testCtx.informerFactory,
nil,
profile.NewRecorderFactory(eventBroadcaster),
testCtx.ctx.Done())