diff --git a/pkg/shim/scheduler.go b/pkg/shim/scheduler.go index 291083f4f..4a60adfc4 100644 --- a/pkg/shim/scheduler.go +++ b/pkg/shim/scheduler.go @@ -67,7 +67,7 @@ func NewShimScheduler(scheduler api.SchedulerAPI, configs *conf.SchedulerConf, b kubeClient := client.NewKubeClient(configs.KubeConfig) // we have disabled re-sync to keep ourselves up-to-date - informerFactory := informers.NewSharedInformerFactory(kubeClient.GetClientSet(), 0) + informerFactory := informers.NewSharedInformerFactoryWithOptions(kubeClient.GetClientSet(), 0, informers.WithNamespace(configs.Namespace)) apiFactory := client.NewAPIFactory(scheduler, informerFactory, configs, false) context := cache.NewContextWithBootstrapConfigMaps(apiFactory, bootstrapConfigMaps)