code: func (kl *Kubelet) getFailedContainers(pod *v1.Pod) ([]string, error) {
  	status, err := kl.containerRuntime.GetPodStatus(pod.UID, pod.Name, pod.Namespace)
  	if err != nil {
  		return nil, fmt.Errorf("unable to get status for pod %q: %v", format.Pod(pod), err)
  	}
  	var containerNames []string
  	for _, cs := range status.ContainerStatuses {
  		if cs.State != kubecontainer.ContainerStateRunning && cs.ExitCode != 0 {
  			containerNames = append(containerNames, cs.Name)
  		}
  	}
  	return containerNames, nil
  }
docs: // getFailedContainer returns failed container name for pod.