mirror of https://github.com/k3s-io/k3s
Fix PodPhase issue caused by backoff
parent
746aae4c17
commit
1b8f851979
|
@ -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++
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue