mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +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.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
|
||||||
|
Loading…
Reference in New Issue
Block a user