Commit 2aba27da authored by Seth Jennings's avatar Seth Jennings

kubelet: force filterContainerID to empty string when removeAll is true

parent d39eac92
...@@ -99,6 +99,7 @@ func (p *podContainerDeletor) deleteContainersInPod(filterContainerID string, po ...@@ -99,6 +99,7 @@ func (p *podContainerDeletor) deleteContainersInPod(filterContainerID string, po
containersToKeep := p.containersToKeep containersToKeep := p.containersToKeep
if removeAll { if removeAll {
containersToKeep = 0 containersToKeep = 0
filterContainerID = ""
} }
for _, candidate := range getContainersToDeleteInPod(filterContainerID, podStatus, containersToKeep) { for _, candidate := range getContainersToDeleteInPod(filterContainerID, podStatus, containersToKeep) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment