Reviewed: https://review.opendev.org/c/starlingx/config/+/809177 Committed: https://opendev.org/starlingx/config/commit/6c3eeee22f0188a55f04e800cbd0c4a90629ab67 Submitter: "Zuul (22348)" Branch: master
commit 6c3eeee22f0188a55f04e800cbd0c4a90629ab67 Author: Mihnea Saracin <email address hidden> Date: Wed Sep 15 15:16:22 2021 +0300
Add a script to migrate releases from helm2 to helm3
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 <email address hidden> Closes-Bug: 1943834
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/809177 /opendev. org/starlingx/ config/ commit/ 6c3eeee22f0188a 55f04e800cbd0c4 a90629ab67
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 6c3eeee22f0188a 55f04e800cbd0c4 a90629ab67
Author: Mihnea Saracin <email address hidden>
Date: Wed Sep 15 15:16:22 2021 +0300
Add a script to migrate releases from helm2 to helm3
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 /github. com/helm/ helm-2to3/ releases/ download/ v0.9.0/ helm-2to3_ 0.9.0_linux_ amd64.tar. gz 2to3_0. 9.0_linux_ amd64.tar. gz PLUGIN_ NO_INSTALL_ HOOK=true
$ wget https:/
$ pushd plugin/
$ tar -xvzf ../helm-
$ mkdir bin
$ cp 2to3 bin
$ popd
$ export HELM_LINTER_
$ 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: I9a3370ddc10a30 7ba87d72837f8e2 84fbe2594bd
Signed-off-by: Mihnea Saracin <email address hidden>
Closes-Bug: 1943834