You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by cc...@apache.org on 2025/03/05 15:50:19 UTC
(yunikorn-k8shim) branch master updated: [YUNIKORN-2850] Watch configmap only in yunikorn's deployed namespace (#957)
This is an automated email from the ASF dual-hosted git repository.
ccondit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-k8shim.git
The following commit(s) were added to refs/heads/master by this push:
new 9c255164 [YUNIKORN-2850] Watch configmap only in yunikorn's deployed namespace (#957)
9c255164 is described below
commit 9c255164779dc7cc9cd0dcab427b1f8e23ab629f
Author: Michael <ch...@idollar.com.tw>
AuthorDate: Wed Mar 5 09:49:59 2025 -0600
[YUNIKORN-2850] Watch configmap only in yunikorn's deployed namespace (#957)
Closes: #957
Signed-off-by: Craig Condit <cc...@apache.org>
---
pkg/client/apifactory.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pkg/client/apifactory.go b/pkg/client/apifactory.go
index 03234c74..def7420e 100644
--- a/pkg/client/apifactory.go
+++ b/pkg/client/apifactory.go
@@ -91,12 +91,12 @@ type APIFactory struct {
func NewAPIFactory(scheduler api.SchedulerAPI, informerFactory informers.SharedInformerFactory, configs *conf.SchedulerConf, testMode bool) *APIFactory {
kubeClient := NewKubeClient(configs.KubeConfig)
-
+ namespaceInformerFactory := informers.NewSharedInformerFactoryWithOptions(kubeClient.GetClientSet(), 0, informers.WithNamespace(configs.Namespace))
// init informers
// volume informers are also used to get the Listers for the predicates
podInformer := informerFactory.Core().V1().Pods()
nodeInformer := informerFactory.Core().V1().Nodes()
- configMapInformer := informerFactory.Core().V1().ConfigMaps()
+ configMapInformer := namespaceInformerFactory.Core().V1().ConfigMaps()
pvInformer := informerFactory.Core().V1().PersistentVolumes()
pvcInformer := informerFactory.Core().V1().PersistentVolumeClaims()
storageInformer := informerFactory.Storage().V1().StorageClasses()
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org