mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	code clean for podgc
This commit is contained in:
		@@ -135,9 +135,6 @@ func (gcc *PodGCController) gcTerminated(pods []*v1.Pod) {
 | 
				
			|||||||
	terminatedPodCount := len(terminatedPods)
 | 
						terminatedPodCount := len(terminatedPods)
 | 
				
			||||||
	deleteCount := terminatedPodCount - gcc.terminatedPodThreshold
 | 
						deleteCount := terminatedPodCount - gcc.terminatedPodThreshold
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if deleteCount > terminatedPodCount {
 | 
					 | 
				
			||||||
		deleteCount = terminatedPodCount
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	if deleteCount <= 0 {
 | 
						if deleteCount <= 0 {
 | 
				
			||||||
		return
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user