Merge pull request #6127 from yujuhong/sethost

Kubelet: set host field in the pending pod status
This commit is contained in:
Victor Marmol 2015-03-27 17:37:14 -07:00
commit 76b5b79106

View File

@ -1904,6 +1904,7 @@ func (kl *Kubelet) generatePodStatusByPod(pod *api.Pod) (api.PodStatus, error) {
} else {
pendingStatus := api.PodStatus{
Phase: api.PodPending,
Host: kl.GetHostname(),
Message: fmt.Sprintf("Query docker container info failed with error (%v)", err),
}
return pendingStatus, nil