Interview Prep/Helm/Hooks, Tests & Validation

What useful flags does `helm diff` have?

IntermediateConceptHooks, Tests & Validation
Answer
# --context: lines of context, --detailed-exitcode: exit 2 when there are changes (CI gate)
# --suppress-secrets: hide Secret data, --normalize-manifests: ignore formatting-only changes
# --three-way-merge: include manual drift in the live objects
helm diff upgrade shop ./shop -f values-prod.yaml \
  --context 5 --detailed-exitcode --suppress-secrets --normalize-manifests --three-way-merge

helm diff revision shop 4 5     # compare two revisions
helm diff rollback shop 3       # preview a rollback

With --three-way-merge, changes someone made with kubectl edit show up in the diff instead of being silently overwritten.

All Helm questions Roadmap: Helm

More on Hooks, Tests & Validation