CICD-166 · Show Helm release history
Encyclopedia · Helm release engineering · All snippets
Previous · CICD-165 · Next · CICD-167
1. Where it fits
- Placement Bash run step following checkout, or equivalent lab terminal.
- Prerequisites Helm 3, reviewed values and staging cluster when applying charts.
- Platforms kubernetes, local-lab.
2. Copy the snippet
bash
helm history web -n staging -o json | jq '[.[] | {revision,status,chart}]'3. How it works
History shows previous Helm release revisions and outcomes. Use the review evidence to identify a safe rollback target. The expression filters or transforms the input JSON. Where jq -e is used, a false or empty result can fail the gate.
4. Verify the result
Confirm the intended known-good revision before rollback.
Validation syntax-validated (Bash parse). Status definitions.