Skip to content

Commit 2b00dd8

Browse files
authored
Merge pull request kubernetes#90409 from rphillips/fixes/add_logging_around_pod_container_deletor
add logging around pod_container_deletor DeleteContainer
2 parents 5bda0c1 + a464299 commit 2b00dd8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/kubelet/pod_container_deletor.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ func newPodContainerDeletor(runtime kubecontainer.Runtime, containersToKeep int)
4848
go wait.Until(func() {
4949
for {
5050
id := <-buffer
51-
runtime.DeleteContainer(id)
51+
if err := runtime.DeleteContainer(id); err != nil {
52+
klog.Warningf("[pod_container_deletor] DeleteContainer returned error for (id=%v): %v", id, err)
53+
}
5254
}
5355
}, 0, wait.NeverStop)
5456

0 commit comments

Comments
 (0)