Interview Prep/Helm/Hooks, Tests, GitOps & Secrets

`helm test` fails with `Error: unable to get pod logs for shop-test-api: pods "shop-test-api" not found`.

IntermediateTroubleshootingHooks, Tests, GitOps & Secrets
Answer

Likely causes → The test Pod was deleted before Helm fetched logs (hook-delete-policy: hook-succeeded or hook-failed) while using --logs.

Diagnose → Check the test template annotations.

Fix → Use before-hook-creation only for test Pods so they remain until the next run.

Prevent → Standardize test Pod annotations in the library chart.

All Helm questions Roadmap: Helm

More on Hooks, Tests, GitOps & Secrets