kubelet: force filterContainerID to empty string when removeAll is true

pull/8/head
Seth Jennings 2018-04-30 16:19:09 -05:00
parent d39eac929f
commit 2aba27da86
1 changed files with 1 additions and 0 deletions

View File

@ -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) {