The instructions below are specifically when upgrading from 2.0.x to 2.x. If upgrading from 2.x to 2.x (for example 2.1.0 to 2.5.0), follow the regular helm upgrade instructions.
From 2.0.x to 2.X
If you have k8s-triliovault-operator with any v2.0.x version installed:
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
tvm default 1 2021-05-16 23:12:30.205083005 +0530 IST deployed k8s-triliovault-operator-v2.0.2 v2.0.2
You should install the tvm-upgrade helm plugin with the following command:
The tvm-upgrade command accepts three inputs, and you can see details in plugin's help:
$ helm tvm-upgrade --help
tvm-upgrade is used to run the pre upgrade job before upgrade from v2.0.x helm release to the new
v2.1.x release version of k8s-triliovault-operator.
--release <release_name> of the previous k8s-triliovault-operator
--namespace <namespace> of the previous k8s-triliovault-operator. By default it takes the current context namespace.
--imageRegistry <imageRegistry> is the registry where the docker image of operator-webhook-init is stored.
This needs to be provided only for dark installations
Usage:
tvm-upgrade [action] [flags]
possible actions:
For more help, run hook --help
Run the helm tvm-upgrade plugin to update your existing release.
$ helm tvm-upgrade --release=tvm --namespace=default
INFO[0000] Validating the release is present or not
INFO[0011] Helm release updated, now you can upgrade the TVM :)
INFO[0011] Deleting the job
Run helm upgrade command to upgrade the helm version:
$ helm upgrade tvm tvm/k8s-triliovault-operator
Release "tvm" has been upgraded. Happy Helming!
NAME: tvm
LAST DEPLOYED: Mon May 17 01:45:14 2021
NAMESPACE: default
STATUS: deployed
REVISION: 2
TEST SUITE: None
NOTES:
To verify that Trilio Operator has started, run:
kubectl --namespace=default get deployments -l "release=tvm"