This commit introduces a custom script that will help
migrating helm releases/installs from helm2 to helm3.
The procedure is:
# install the /helm-2to3 plugin
$ mkdir plugin
$ wget https://github.com/helm/helm-2to3/releases/download/v0.9.0/helm-2to3_0.9.0_linux_amd64.tar.gz
$ pushd plugin/
$ tar -xvzf ../helm-2to3_0.9.0_linux_amd64.tar.gz
$ mkdir bin
$ cp 2to3 bin
$ popd
$ export HELM_LINTER_PLUGIN_NO_INSTALL_HOOK=true
$ helm plugin install ./plugin
# move the helm2 config to helm3
$ helm 2to3 move config
# chose a helmv2 release to migrate:
$ helmv2-cli -- helm list -a
# migrate a helm2 release e.g deployment manager
$ ./migrate_helm_release.py deployment-manager
# check if it migrated successfully:
$ helm list -A -a
# it should not be present anymore in helm2:
helmv2-cli -- helm list -a
Change-Id: I9a3370ddc10a307ba87d72837f8e284fbe2594bd
Signed-off-by: Mihnea Saracin <Mihnea.Saracin@windriver.com>
Closes-Bug: 1943834