You want developers to preview exactly what their values change will do to prod. What do you provide?
BeginnerScenarioValues & Environments
Answer
Situation read → People change values blind and find out during deploy.
What I'd do →
- A PR job running
helm diff upgrade shop <chart> -n shop -f values-prod.yaml --context 3 --suppress-secretswith read-only cluster credentials, posting output as a PR comment. - For GitOps, use Argo CD's diff (
argocd app diff) or a rendered-manifests diff in the PR. - Require approval on prod diffs.
Why → A visible diff turns a values tweak into a reviewable infrastructure change.
Interview tip → Compare helm diff to terraform plan.
More on Values & Environments
Dev, staging and prod values files have drifted and nobody knows which settings differ intentionally. What do you do?IntermediateA deploy pipeline uses `--reuse-values` and a new chart version just broke production. Why, and what do you change?AdvancedYou need a per-environment image tag set by CI, while everything else lives in Git. How do you wire it?BeginnerA value that should be `false` in prod keeps rendering as enabled. Where do you look?IntermediateDifferent clusters need different storage classes and ingress classes. How do you keep the chart portable?IntermediateA developer passes 20 `--set` flags in a shell script. What would you change?Beginner