Kubelet: set host field in the pending pod status

Otherwise, the apiserver would reject the update.
This commit is contained in:
Yu-Ju Hong 2015-03-27 17:26:47 -07:00
parent 320df1d2ad
commit 372c5c9f3a

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