Comment 1 for bug 1943834

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (master)

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