mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Kubelet: set host field in the pending pod status
Otherwise, the apiserver would reject the update.
This commit is contained in:
parent
320df1d2ad
commit
372c5c9f3a
@ -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