mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Fix PodPhase issue caused by backoff
This commit is contained in:
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 {
|
||||
if containerStatus.LastTerminationState.Terminated != nil {
|
||||
stopped++
|
||||
} else {
|
||||
waiting++
|
||||
}
|
||||
} else {
|
||||
unknown++
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user