mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 23:15:14 +00:00
comment.
This commit is contained in:
parent
f762e062f2
commit
4da829ef20
@ -188,8 +188,9 @@ func (p *PodCache) computePodStatus(pod *api.Pod) (api.PodStatus, error) {
|
||||
newStatus.Info = result.Status.Info
|
||||
newStatus.PodIP = result.Status.PodIP
|
||||
if newStatus.Info == nil {
|
||||
// There is a small race window, kubelet just has PodSpec, but
|
||||
// couldn't retrieve any ContainerStatus.
|
||||
// There is a small race window that kubelet couldn't
|
||||
// propulated the status yet. This should go away once
|
||||
// we removed boundPods
|
||||
newStatus.Phase = api.PodPending
|
||||
} else {
|
||||
newStatus.Phase = result.Status.Phase
|
||||
|
Loading…
Reference in New Issue
Block a user