Merge pull request #90409 from rphillips/fixes/add_logging_around_pod_container_deletor

add logging around pod_container_deletor DeleteContainer
This commit is contained in:
Kubernetes Prow Robot 2020-05-14 13:38:58 -07:00 committed by GitHub
commit 2b00dd8536
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,9 @@ func newPodContainerDeletor(runtime kubecontainer.Runtime, containersToKeep int)
go wait.Until(func() {
for {
id := <-buffer
runtime.DeleteContainer(id)
if err := runtime.DeleteContainer(id); err != nil {
klog.Warningf("[pod_container_deletor] DeleteContainer returned error for (id=%v): %v", id, err)
}
}
}, 0, wait.NeverStop)