mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 11:48:15 +00:00 
			
		
		
		
	kubelet: force filterContainerID to empty string when removeAll is true
This commit is contained in:
		@@ -99,6 +99,7 @@ func (p *podContainerDeletor) deleteContainersInPod(filterContainerID string, po
 | 
			
		||||
	containersToKeep := p.containersToKeep
 | 
			
		||||
	if removeAll {
 | 
			
		||||
		containersToKeep = 0
 | 
			
		||||
		filterContainerID = ""
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	for _, candidate := range getContainersToDeleteInPod(filterContainerID, podStatus, containersToKeep) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user