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 <[email protected]>
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 <[email protected]>
---
 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to