Skip to content

Commit ea7cd3b

Browse files
authored
Merge pull request kubernetes#92796 from andyxning/code_clean_for_podgc
code clean for podgc
2 parents d159ae3 + 2e22ef5 commit ea7cd3b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/controller/podgc/gc_controller.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,6 @@ func (gcc *PodGCController) gcTerminated(pods []*v1.Pod) {
135135
terminatedPodCount := len(terminatedPods)
136136
deleteCount := terminatedPodCount - gcc.terminatedPodThreshold
137137

138-
if deleteCount > terminatedPodCount {
139-
deleteCount = terminatedPodCount
140-
}
141138
if deleteCount <= 0 {
142139
return
143140
}

0 commit comments

Comments
 (0)