Fix PodPhase issue caused by backoff

pull/6/head
Dawn Chen 2015-10-16 13:02:00 -07:00
parent 746aae4c17
commit 1b8f851979
1 changed files with 5 additions and 1 deletions

View File

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