Surface kube config in scheduler framework handle

This commit is contained in:
Wei Huang
2021-03-29 12:27:27 -07:00
parent 3d48f0d1dd
commit e7f67b1a63
11 changed files with 55 additions and 14 deletions

View File

@@ -99,7 +99,7 @@ func mustSetupScheduler(config *config.KubeSchedulerConfiguration) (util.Shutdow
// Not all config options will be effective but only those mostly related with scheduler performance will
// be applied to start a scheduler, most of them are defined in `scheduler.schedulerOptions`.
_, podInformer, schedulerShutdown := util.StartScheduler(client, config)
_, podInformer, schedulerShutdown := util.StartScheduler(client, cfg, config)
fakePVControllerShutdown := util.StartFakePVController(client)
shutdownFunc := func() {