Interview Prep/Helm/Hooks, Migrations & Testing

You want smoke tests to block promotion from staging to prod. How do you wire `helm test` into the pipeline?

BeginnerScenarioHooks, Migrations & Testing
Answer

Situation read → Promotion should be automatic only if staging is healthy.

What I'd do →

  1. Staging job: helm upgrade --install ... --atomic --wait, then helm test shop -n shop --logs --timeout 3m.
  2. Fail the job on non-zero exit; prod job depends on it.
  3. Promote the exact same chart version and image digest to prod.

Why → You promote an artifact that was tested, not a rebuild.

Interview tip → "Promote the same artifact" is the key phrase.

All Helm questions Roadmap: Helm

More on Hooks, Migrations & Testing