This commit is contained in:
Dawn Chen 2015-02-05 15:57:26 -08:00
parent f762e062f2
commit 4da829ef20

View File

@ -188,8 +188,9 @@ func (p *PodCache) computePodStatus(pod *api.Pod) (api.PodStatus, error) {
newStatus.Info = result.Status.Info newStatus.Info = result.Status.Info
newStatus.PodIP = result.Status.PodIP newStatus.PodIP = result.Status.PodIP
if newStatus.Info == nil { if newStatus.Info == nil {
// There is a small race window, kubelet just has PodSpec, but // There is a small race window that kubelet couldn't
// couldn't retrieve any ContainerStatus. // propulated the status yet. This should go away once
// we removed boundPods
newStatus.Phase = api.PodPending newStatus.Phase = api.PodPending
} else { } else {
newStatus.Phase = result.Status.Phase newStatus.Phase = result.Status.Phase