Skip to content

Commit a1ff84c

Browse files
authored
Fix: add ns filter to podLister (#622)
1 parent 4c9ac06 commit a1ff84c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/controller/mpi_job_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ func (c *MPIJobController) getRunningWorkerPods(mpiJob *kubeflow.MPIJob) ([]*cor
808808
if err != nil {
809809
return nil, err
810810
}
811-
podFullList, err := c.podLister.List(selector)
811+
podFullList, err := c.podLister.Pods(mpiJob.Namespace).List(selector)
812812
if err != nil {
813813
return nil, err
814814
}
@@ -956,7 +956,7 @@ func (c *MPIJobController) getOrCreateWorker(mpiJob *kubeflow.MPIJob) ([]*corev1
956956
if err != nil {
957957
return nil, err
958958
}
959-
podFullList, err := c.podLister.List(selector)
959+
podFullList, err := c.podLister.Pods(mpiJob.Namespace).List(selector)
960960
if err != nil {
961961
return nil, err
962962
}

0 commit comments

Comments
 (0)