If you have previously installed a version of CAM upgrading is straight forward.
Removing the namespace and recreating it will remove service accounts and will require updating the remote cluster credentials so this should be avoided.
Instead, as an example, if you have previously installed version 1.2.1 and now wish to upgrade to 1.2.2 run:
oc replace -f deploy/non-olm/v1.2.2/operator.yml
This will redeploy the new operator, which will in turn deploy the new operands.
If you chose automatic
approvals for upgrades CAM will autoamtically update on a particular channel.
-
If you chose
manual
approvals or wish to switch channels navigate toOperators>Installed Operators
on the left menu in the OpenShift console. -
Click the
Cluster Application Migration Operator
link. -
From this page you can switch channels or approve a pending update. Like with OpenShift 3 modifying the subscription will deploy the updated operator which will in turn deploy the updated operands.
In CAM 1.2 the mig
service account has been replaced with the migration-controller
service account. When upgrading from 1.1.z to 1.2.z you should also update the remote cluster service account token.