code: func (kl *Kubelet) filterOutTerminatedPods(pods []*v1.Pod) []*v1.Pod {
  	var filteredPods []*v1.Pod
  	for _, p := range pods {
  		if kl.podIsTerminated(p) {
  			continue
  		}
  		filteredPods = append(filteredPods, p)
  	}
  	return filteredPods
  }
docs: // filterOutTerminatedPods returns the given pods which the status manager
  // does not consider failed or succeeded.