Performing rolling roll back to HCL Compass Helm chart
You can roll back HCL Compass to the previous release using the helm rollback command.
Before you begin
- Use Helm to install the HCL Compass solution chart as described in Step 3 of Getting started with HCL Compass Helm chart.
- Use Helm to upgrade the HCL Compass solution chart to the new HCL Compass release as described in Performing rolling upgrades to HCL Compass Helm chart.
About this task
Procedure
-
Run the helm history command to see revision numbers of your
HCL Compass helm chart
release.
You should have a minimum of two revision numbers: revision 1 for installation and revision 2 that you used to upgrade to. The following example illustrates a helm chart release named
hcl-compass1
with revision 1 installedhcl-compass87-0.1.0
for the HCL Compass 2.0.3.01 release and revision 2 upgraded the helm charthcl-compass89-0.1.0
to the HCL Compass 2.2 release.$ helm history hcl-compass --namespace dev REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION 1 Thu Jan 20 21:58:13 2022 superseded hcl-compass87-0.1.0 1.16.0 Install complete 2 Thu Jan 20 22:13:56 2022 deployed hcl-compass89-0.1.0 1.16.0 Upgrade complete
-
Roll back the HCL Compass helm
chart using the helm rollback command.
The following example will roll back the HCL Compass helm chart release hcl-compass from revision 2 to revision 1.
$ helm rollback hcl-compass --namespace dev Rollback was a success! Happy Helming!
-
Run the helm history RELEASE command to see that
the new revision 3 has been created after roll back, and that it rolled back to revision 1
in the HCL Compass helm chart
release hcl-compass.
$ helm history hcl-compass --namespace dev REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION 1 Thu Jan 20 21:58:13 2022 superseded hcl-compass87-0.1.0 1.16.0 Install complete 2 Thu Jan 20 22:13:56 2022 deployed hcl-compass89-0.1.0 1.16.0 Upgrade complete 3 Thu Jan 20 22:30:32 2022 deployed hcl-compass87-0.1.0 1.16.0 Rollback to 1