mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Extract restart number properly
Signed-off-by: Laura Lorenz <lauralorenz@google.com>
This commit is contained in:
parent
2732d57e33
commit
1da8ca816e
@ -113,7 +113,7 @@ func extractObservedBackoff(ctx context.Context, f *framework.Framework, podName
|
||||
for _, statuses := range [][]v1.ContainerStatus{pod.Status.ContainerStatuses, pod.Status.InitContainerStatuses, pod.Status.EphemeralContainerStatuses} {
|
||||
for _, cs := range statuses {
|
||||
if cs.Name == containerName {
|
||||
return r, nil
|
||||
return cs.RestartCount, nil
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user