code: func IsPodTerminated(pod *v1.Pod, podStatus v1.PodStatus) bool {
  	return podStatus.Phase == v1.PodFailed || podStatus.Phase == v1.PodSucceeded || (pod.DeletionTimestamp != nil && notRunning(podStatus.ContainerStatuses))
  }
docs: // IsPodTerminated checks if pod is terminated