Interview Prep/Helm/Hooks, Migrations & Testing

How would you run integration tests against a chart in CI with a real cluster?

IntermediateScenarioHooks, Migrations & Testing
Answer

Situation read → Unit-level checks pass, but you want proof that it installs and works.

What I'd do →

  1. Create an ephemeral kind cluster in the job (helm/kind-action in GitHub Actions).
  2. Load images with kind load docker-image.
  3. helm install --wait --timeout 5m with CI values; helm test --logs.
  4. Also test upgrade from the previously released chart version to this one, and a rollback.
  5. Or use chart-testing (ct lint-and-install --upgrade), which does install and upgrade tests for changed charts.

Why → Install and upgrade paths fail in different ways; test both.

Interview tip → Mention ct (chart-testing) and upgrade testing.

All Helm questions Roadmap: Helm

More on Hooks, Migrations & Testing