code: func mergePodStatus(oldPodStatus, newPodStatus v1.PodStatus) v1.PodStatus {
  	podConditions := []v1.PodCondition{}
  	for _, c := range oldPodStatus.Conditions {
  		if !kubetypes.PodConditionByKubelet(c.Type) {
  			podConditions = append(podConditions, c)
  		}
  	}
  
  	for _, c := range newPodStatus.Conditions {
  		if kubetypes.PodConditionByKubelet(c.Type) {
  			podConditions = append(podConditions, c)
  		}
  	}
  	newPodStatus.Conditions = podConditions
  	return newPodStatus
  }
docs: // mergePodStatus merges oldPodStatus and newPodStatus where pod conditions
  // not owned by kubelet is preserved from oldPodStatus