// GetPodList
// In DevMode, return pod list of generated Job.
// Otherwise, return pod list of original Job
GetPodList
In DevMode, return pod list of generated Job.
Otherwise, return pod list of original Job
// GetPodList // In DevMode return pod list of generated Job . // Otherwise return pod list of original Job
func (j *JobController) GetPodList() ([]corev1.Pod, error) {
	if j.IsInReplaceDevMode() {
		pl, err := j.Client.ListPodsByJob(j.getGeneratedJobName())
		if err != nil {
			return nil, err
		}
		return pl.Items, nil
	}
	pl, err := j.Client.ListPodsByJob(j.GetName())
	if err != nil {
		return nil, err
	}
	return pl.Items, nil
}
func ( j * JobController ) GetPodList ( ) ( [ ] corev1 . Pod , error ) { if j . IsInReplaceDevMode ( ) { pl , err := j . Client . ListPodsByJob ( j . getGeneratedJobName ( ) ) if err != nil { return nil , err } return pl . Items , nil } pl , err := j . Client . ListPodsByJob ( j . GetName ( ) ) if err != nil { return nil , err } return pl . Items , nil }
GetPodList
In DevMode, return pod list of generated Job.
GetPodList In DevMode return pod list of generated Job .