code clean for podgc

This commit is contained in:
andyxning 2020-07-04 23:01:16 +08:00
parent 2da917d370
commit 2e22ef50ea

View File

@ -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
}