Commit 1b8f8519 authored by Dawn Chen's avatar Dawn Chen

Fix PodPhase issue caused by backoff

parent 746aae4c
...@@ -2513,7 +2513,11 @@ func GetPhase(spec *api.PodSpec, info []api.ContainerStatus) api.PodPhase { ...@@ -2513,7 +2513,11 @@ func GetPhase(spec *api.PodSpec, info []api.ContainerStatus) api.PodPhase {
failed++ failed++
} }
} else if containerStatus.State.Waiting != nil { } else if containerStatus.State.Waiting != nil {
waiting++ if containerStatus.LastTerminationState.Terminated != nil {
stopped++
} else {
waiting++
}
} else { } else {
unknown++ unknown++
} }
......
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