code: func (s *StoreToJobLister) GetPodJobs(pod *api.Pod) (jobs []extensions.Job, err error) {
  	var selector labels.Selector
  	var job extensions.Job
  
  	if len(pod.Labels) == 0 {
  		err = fmt.Errorf("no jobs found for pod %v because it has no labels", pod.Name)
  		return
  	}
  
  	for _, m := range s.Store.List() {
  		job = *m.(*extensions.Job)
  		if job.Namespace != pod.Namespace {
  			continue
  		}
  
  		selector, _ = unversioned.LabelSelectorAsSelector(job.Spec.Selector)
  		if !selector.Matches(labels.Set(pod.Labels)) {
  			continue
  		}
  		jobs = append(jobs, job)
  	}
  	if len(jobs) == 0 {
  		err = fmt.Errorf("could not find jobs for pod %s in namespace %s with labels: %v", pod.Name, pod.Namespace, pod.Labels)
  	}
  	return
  }
docs: // GetPodJobs returns a list of jobs managing a pod. Returns an error only if no matching jobs are found.