code: func (jm *JobController) getPodJobs(pod *v1.Pod) []*batch.Job {
  	jobs, err := jm.jobLister.GetPodJobs(pod)
  	if err != nil {
  		return nil
  	}
  	if len(jobs) > 1 {
  		// ControllerRef will ensure we don't do anything crazy, but more than one
  		// item in this list nevertheless constitutes user error.
  		utilruntime.HandleError(fmt.Errorf("user error! more than one job is selecting pods with labels: %+v", pod.Labels))
  	}
  	ret := make([]*batch.Job, 0, len(jobs))
  	for i := range jobs {
  		ret = append(ret, &jobs[i])
  	}
  	return ret
  }
docs: // getPodJobs returns a list of Jobs that potentially match a Pod.