Skip to content

Commit a464299

Browse files
committed
add logging around pod_container_deletor DeleteContainer
1 parent 08e1fd3 commit a464299

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)