Skip to content

Commit

Permalink
Fix: add ns filter to podLister (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuizhiqing committed Feb 6, 2024
1 parent 4c9ac06 commit a1ff84c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/mpi_job_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ func (c *MPIJobController) getRunningWorkerPods(mpiJob *kubeflow.MPIJob) ([]*cor
if err != nil {
return nil, err
}
podFullList, err := c.podLister.List(selector)
podFullList, err := c.podLister.Pods(mpiJob.Namespace).List(selector)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -956,7 +956,7 @@ func (c *MPIJobController) getOrCreateWorker(mpiJob *kubeflow.MPIJob) ([]*corev1
if err != nil {
return nil, err
}
podFullList, err := c.podLister.List(selector)
podFullList, err := c.podLister.Pods(mpiJob.Namespace).List(selector)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit a1ff84c

Please sign in to comment.