code: func FilterActivePods(pods []*v1.Pod) []*v1.Pod {
  	var result []*v1.Pod
  	for _, p := range pods {
  		if IsPodActive(p) {
  			result = append(result, p)
  		} else {
  			klog.V(4).Infof("Ignoring inactive pod %v/%v in state %v, deletion time %v",
  				p.Namespace, p.Name, p.Status.Phase, p.DeletionTimestamp)
  		}
  	}
  	return result
  }
docs: // FilterActivePods returns pods that have not terminated.