Commit 4da829ef authored by Dawn Chen's avatar Dawn Chen

comment.

parent f762e062
...@@ -188,8 +188,9 @@ func (p *PodCache) computePodStatus(pod *api.Pod) (api.PodStatus, error) { ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment