Skip to content

CICD-167 · Roll back a reviewed Helm revision ​

Encyclopedia · Helm release engineering · All snippets

Previous · CICD-166 · Next · CICD-168

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.
  • Parameters GOOD_REVISION.

2. Copy the snippet ​

bash
helm rollback web "${GOOD_REVISION:?}" -n staging --wait --timeout 4m

3. How it works ​

Helm upgrades the release back to the named prior revision. Validate independent data changes separately.

4. Verify the result ​

Verify database and ConfigMap compatibility before rollback.

Validation syntax-validated (Bash parse). Status definitions.