Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.71 KB

update.md

File metadata and controls

60 lines (41 loc) · 1.71 KB

Update

Follow the sections below to learn about the steps you need to perform before updating according to your current version.

If your version is not included, just follow Simple update

Simple update

Remove the operator:

./scripts/remove.sh

and follow installation guide again. The operator will try to perform all its work again but will stop it when it realizes that most of it was already performed on previous installation.

0.5.1 and below

Remove the operator:

./scripts/remove.sh

watchNamespacesByDefault on the settings needs to be set as true if your previous value of namespace.listPolicy was blocklist, otherwise you can just leave it as it is.

Now, if your previous value of namespace.listPolicy was allowlist run:

for ns in $(kubectl get ns -l "operator.cnwan.io/allowed" -o jsonpath="{.items[*].metadata.name}")
do
kubectl label ns $ns operator.cnwan.io/watch=enabled
kubectl label ns $ns operator.cnwan.io/allowed-
done

Or, if it was blocklist:

for ns in $(kubectl get ns -l "operator.cnwan.io/blocked" -o jsonpath="{.items[*].metadata.name}")
do
kubectl label ns $ns operator.cnwan.io/watch=disabled
kubectl label ns $ns operator.cnwan.io/blocked-
done

0.2.1 and below

Clone latest v0.2.x version and navigate to `/scripts folder to remove it:

git clone --depth 1 --branch v0.2.1 https://github.com/CloudNativeSDWAN/cnwan-operator
cd cnwan-operator/scripts
./remove.sh

The Settings that was being used up to v0.2.1 is deprecated and will be dropped in v0.6.0. Follow the installation guide carefully to re-deploy the operator with the new Settings.