Helm delete policy hook removes pod before log dump (helm test --logs)

4/24/2020

I am running helm test --logs .... I have set a "helm.sh/hook-delete-policy" of hook-succeeded,hook-failed in my tests. According to the Helm docs, "Dump the logs from test pods (this runs after all tests are complete, but before any cleanup)". I believed the delete policy was part of the cleanup, but I hit the error below:

Error: unable to get pod logs for hello-world-1231321-foo-bar: pods "hello-world-1231321-foo-bar" not found

Is there a way to get the logs using Helm and automatically delete the test pods?

-- mdblr
hook
kubernetes-helm
logging
testing

0 Answers