mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-04 18:52:38 +00:00
Merge pull request #92796 from andyxning/code_clean_for_podgc
code clean for podgc
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user