mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
Merge pull request #92796 from andyxning/code_clean_for_podgc
code clean for podgc
This commit is contained in:
commit
ea7cd3b354
1 changed files with 0 additions and 3 deletions
|
|
@ -135,9 +135,6 @@ func (gcc *PodGCController) gcTerminated(pods []*v1.Pod) {
|
|||
terminatedPodCount := len(terminatedPods)
|
||||
deleteCount := terminatedPodCount - gcc.terminatedPodThreshold
|
||||
|
||||
if deleteCount > terminatedPodCount {
|
||||
deleteCount = terminatedPodCount
|
||||
}
|
||||
if deleteCount <= 0 {
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue