Interview Prep/Helm/OCI, CI/CD & GitOps

Developers want to deploy feature branches as preview environments using your chart. How?

AdvancedScenarioOCI, CI/CD & GitOps
Answer

Situation read → Ephemeral releases per PR, cleaned up automatically.

What I'd do →

  1. Argo CD ApplicationSet with the Pull Request generator: one Application per open PR, namespace pr-<number>, values setting the image tag to the PR build and host pr-<number>.preview.example.com.
  2. Use small resources and an in-cluster DB subchart with no persistence.
  3. When the PR closes, the generator deletes the Application and its namespace.
  4. Without Argo CD: CI runs helm upgrade --install shop-pr-123 -n pr-123 --create-namespace and helm uninstall plus namespace delete on close.

Why → Automated lifecycle avoids orphaned preview environments.

Interview tip → Name the ApplicationSet PR generator.

All Helm questions Roadmap: Helm

More on OCI, CI/CD & GitOps