Operator Rollbacks
This page describes the process to rollback an operator installation to a previous version.
Operand compatibility
Prior to rolling back (downgrading) an operator installation, any DataPower operands (DataPowerService
custom resources) currently being managed by the operator must be made compatible with the desired (lower) version of the operator. One main consideration here should be the spec.version
of the DataPowerService
operand, as the supported values for this field gnerally may change between operator versions. As an example, operator version 1.2.0
adds support for spec.version: 10.0.1.1
.
Thus, if an operator is running 1.2.0
and reconciles a DataPower operand with spec.version: 10.0.1.1
, the operand must be downgraded to 10.0.1.0
prior to rolling the operator back to 1.1.x
(where 10.0.1.0
is the highest version 1.1.x
supports).
To modify the operand, edit any DataPowerService
custom resources (CRs) and change the value of spec.version
(and any other applicable configurations) such that the CR is compatible with the desired lower operator version.
Rollback via OLM
To rollback (downgrade) an operator installation that is managed by OLM, the operator must be reinstalled as OLM does not support downgrading operators.
Example
Given:
- You have a DataPower Operator installed, with channel
v1.2-eus
selected with anAutomatic
subscription. - You wish to rollback (downgrade) to
v1.1
with anAutomatic
subscription.
Flow:
- Edit applicable
DataPowerService
CRs to ensure compatibility withv1.1
operator. - Delete the
v1.2-eus
subscription / installation, leaving any operands deployed in the namespace. - Create a new
v1.1
subscription, triggering the new installation.
Rollback via Helm
To rollback (downgrade) an operator installation that was deployed using our Helm chart, the helm rollback
command can be used.
Example
Given:
- You have a DataPower Operator installed, at version
1.2.0
, which was upgraded from1.1.1
. - You wish to rollback (downgrade) to
1.1.1
.
Flow:
Edit applicable
DataPowerService
CRs to ensure compatibility with1.1.1
operator.Check revision history via
helm history
.$ helm history datapower-operatorREVISION UPDATED STATUS CHART APP VERSION DESCRIPTION1 Mon Dec 7 14:23:56 2020 superseded datapower-operator-1.1.1 1.1.1 Install complete2 Mon Dec 7 14:24:23 2020 deployed datapower-operator-1.2.0 1.2.0 Upgrade completePerform the rollback, using appropriate
REVISION
number.$ helm rollback datapower-operator 1Rollback was a success! Happy Helming!