mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 02:38:12 +00:00
Fix the rest of the code
This commit is contained in:
@@ -576,7 +576,7 @@ func podReadyTime(pod *api.Pod) unversioned.Time {
|
||||
func maxContainerRestarts(pod *api.Pod) int {
|
||||
maxRestarts := 0
|
||||
for _, c := range pod.Status.ContainerStatuses {
|
||||
maxRestarts = integer.IntMax(maxRestarts, c.RestartCount)
|
||||
maxRestarts = integer.IntMax(maxRestarts, int(c.RestartCount))
|
||||
}
|
||||
return maxRestarts
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user