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 →
- 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 hostpr-<number>.preview.example.com. - Use small resources and an in-cluster DB subchart with no persistence.
- When the PR closes, the generator deletes the Application and its namespace.
- Without Argo CD: CI runs
helm upgrade --install shop-pr-123 -n pr-123 --create-namespaceandhelm uninstallplus namespace delete on close.
Why → Automated lifecycle avoids orphaned preview environments.
Interview tip → Name the ApplicationSet PR generator.
More on OCI, CI/CD & GitOps
Design the CI pipeline for an internal Helm chart.IntermediateYour org is moving charts from ChartMuseum to an OCI registry. What changes for consumers?IntermediateA chart version was overwritten in the registry and two clusters now run different content for "1.4.0". How do you prevent it?AdvancedHow would you give GitHub Actions push access to ECR for charts without long-lived keys?IntermediateYou are adopting Argo CD for apps currently deployed with `helm upgrade` from CI. How do you migrate?AdvancedArgo CD shows a Helm app permanently OutOfSync even right after a sync. What do you look for?Intermediate