mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
code clean for podgc
This commit is contained in:
parent
2da917d370
commit
2e22ef50ea
@ -135,9 +135,6 @@ func (gcc *PodGCController) gcTerminated(pods []*v1.Pod) {
|
|||||||
terminatedPodCount := len(terminatedPods)
|
terminatedPodCount := len(terminatedPods)
|
||||||
deleteCount := terminatedPodCount - gcc.terminatedPodThreshold
|
deleteCount := terminatedPodCount - gcc.terminatedPodThreshold
|
||||||
|
|
||||||
if deleteCount > terminatedPodCount {
|
|
||||||
deleteCount = terminatedPodCount
|
|
||||||
}
|
|
||||||
if deleteCount <= 0 {
|
if deleteCount <= 0 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user