Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YUNIKORN-2850] Watch configmap only in yunikorn's deployed namespace #942

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
2 changes: 1 addition & 1 deletion pkg/shim/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
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))

Check warning on line 70 in pkg/shim/scheduler.go

View check run for this annotation

Codecov / codecov/patch

pkg/shim/scheduler.go#L70

Added line #L70 was not covered by tests

apiFactory := client.NewAPIFactory(scheduler, informerFactory, configs, false)
context := cache.NewContextWithBootstrapConfigMaps(apiFactory, bootstrapConfigMaps)
Expand Down
Loading