Skip to content

Commit 2e22ef5

Browse files
committed
code clean for podgc
1 parent 2da917d commit 2e22ef5

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)