Merge pull request #92796 from andyxning/code_clean_for_podgc

code clean for podgc
This commit is contained in:
Kubernetes Prow Robot 2020-09-01 15:35:06 -07:00 committed by GitHub
commit ea7cd3b354
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}