mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #6127 from yujuhong/sethost
Kubelet: set host field in the pending pod status
This commit is contained in:
commit
76b5b79106
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user