func PodTerminated()

in kubernetes/util.go [357:371]


func PodTerminated(pod *Pod, containers []*ContainerInPod) bool {
	// Pod is not marked for termination, so it is not terminated.
	if !PodTerminating(pod) {
		return false
	}

	// If any container is running, the pod is not terminated yet.
	for _, container := range containers {
		if container.Status.State.Running != nil {
			return false
		}
	}

	return true
}