{"id":25823392,"url":"https://github.com/saada/helm-operator-migrate-2to3-demo","last_synced_at":"2026-02-27T01:32:16.046Z","repository":{"id":56502309,"uuid":"283606899","full_name":"saada/helm-operator-migrate-2to3-demo","owner":"saada","description":"Demo repo to upgrade a Helm Operator HelmRelease from v2 to v3","archived":false,"fork":false,"pushed_at":"2020-11-03T17:53:27.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T17:47:18.215Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saada.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-29T21:34:29.000Z","updated_at":"2020-11-03T17:53:28.000Z","dependencies_parsed_at":"2022-08-15T20:00:26.366Z","dependency_job_id":null,"html_url":"https://github.com/saada/helm-operator-migrate-2to3-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saada/helm-operator-migrate-2to3-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saada%2Fhelm-operator-migrate-2to3-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saada%2Fhelm-operator-migrate-2to3-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saada%2Fhelm-operator-migrate-2to3-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saada%2Fhelm-operator-migrate-2to3-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saada","download_url":"https://codeload.github.com/saada/helm-operator-migrate-2to3-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saada%2Fhelm-operator-migrate-2to3-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29880747,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"ssl_error","status_checked_at":"2026-02-26T23:50:46.793Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-28T11:54:07.192Z","updated_at":"2026-02-27T01:32:16.029Z","avatar_url":"https://github.com/saada.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Helm Operator Migrate 2to3 Demo\n\n\u003e How do I migrate my environments from Helm 2 to 3 if I use Helm Operator?\n\nWith the latest version of Helm Operator [v1.2.0](https://github.com/fluxcd/helm-operator/releases/tag/v1.2.0) we now have support for [Helm 2to3 automatic migration support]( https://github.com/fluxcd/helm-operator/pull/462).\n\nThis repo demonstrates how to apply this migration in your clusters.\n\n## Prerequisites\n\n- Helm 2\n- Helm 3\n- kind\n- kubectl\n- HelmReleases are all using `apiVersion: helm.fluxcd.io/v1`\n\n## Setup\n\n```sh\n# setup a k8s cluster\nkind create cluster\n\n# install tiller\nkubectl -n kube-system create serviceaccount tiller\nkubectl create clusterrolebinding tiller \\\n  --clusterrole=cluster-admin \\\n  --serviceaccount=kube-system:tiller\nhelm2 init --service-account tiller\n\n# install helm operator\nkubectl create namespace flux\nhelm3 repo add fluxcd https://charts.fluxcd.io\nkubectl apply -f https://raw.githubusercontent.com/fluxcd/helm-operator/v1.2.0/deploy/crds.yaml\nhelm3 upgrade -i helm-operator fluxcd/helm-operator \\\n    --namespace flux \\\n    --set image.tag=\"1.1.0\" \\\n    --set helm.versions=\"v2\\,v3\" # Default with support for Helm 2 and 3 enabled\n```\n\n## Install Helm 2 release that we want to migrate\n\n```sh\nkubectl apply -f v2.yaml\nhelm2 ls # you should see your helm release show up in tiller\n```\n\n## Migrate the HelmRelease from v2 to v3\n\nThe only changes in [v3.yaml](./v3.yaml) are:\n\n1. Added annotation `helm.fluxcd.io/migrate: \"true\"`\n2. Set `spec.helmVersion: v3`\n\n```sh\n# upgrade to latest operator version v1.2.0 that supports 2to3 migrations\nhelm3 upgrade -i helm-operator fluxcd/helm-operator \\\n    --namespace flux \\\n    --set image.tag=\"1.2.0\" \\\n    --set helm.versions=\"v2\\,v3\"\n# upgrade the helmrelease with migration changes\nkubectl apply -f v3.yaml\nhelm2 ls # the release should disappear from tiller\nhelm3 ls # the release should show up in helm3 client output\n```\n\nIf no changes in the chart itself or values were made, your pods\nshould remain running even after the migration without interruption.\n\n## Restrict to Helm3 manifests\n\nOnce everything is migrating safely without issues, we can turn off v2 support.\n\n```sh\nhelm3 upgrade -i helm-operator fluxcd/helm-operator \\\n    --namespace flux \\\n    --set image.tag=\"1.2.0\" \\\n    --set helm.versions=\"v3\" # we explicitly no longer want to support new manifests set to \"v2\"\n```\n## Monitor the migration\n\n```sh\nkubectl logs -f -n flux deploy/helm-operator\nkubectl describe hr weave-scope\n```\n\nHere's a sample of a successful migration log\n\n```\nts=2020-07-29T22:25:04.119426014Z caller=release.go:79 component=release release=weave-scope targetNamespace=default resource=default:helmrelease/weave-scope helmVersion=v3 info=\"starting sync run\"\nts=2020-07-29T22:25:07.067531338Z caller=release.go:328 component=release release=weave-scope targetNamespace=default resource=default:helmrelease/weave-scope helmVersion=v3 info=\"running 2to3 migration\" phase=migrate\nts=2020-07-29T22:25:07.097633032Z caller=logwriter.go:28 info=\"2020/07/29 22:25:07 [Helm 2] ReleaseVersion \\\"weave-scope.v1\\\" will be deleted.\"\nts=2020-07-29T22:25:07.115255983Z caller=logwriter.go:28 info=\"2020/07/29 22:25:07 [Helm 2] ReleaseVersion \\\"weave-scope.v1\\\" deleted.\"\nts=2020-07-29T22:25:07.121587249Z caller=release.go:353 component=release release=weave-scope targetNamespace=default resource=default:helmrelease/weave-scope helmVersion=v3 info=\"running upgrade\" action=upgrade\nts=2020-07-29T22:25:07.15084338Z caller=helm.go:69 component=helm version=v3 info=\"preparing upgrade for weave-scope\" targetNamespace=default release=weave-scope\nts=2020-07-29T22:25:07.154397227Z caller=helm.go:69 component=helm version=v3 info=\"resetting values to the chart's original version\" targetNamespace=default release=weave-scope\nts=2020-07-29T22:25:07.327730795Z caller=helm.go:69 component=helm version=v3 info=\"performing update for weave-scope\" targetNamespace=default release=weave-scope\nts=2020-07-29T22:25:07.340166596Z caller=helm.go:69 component=helm version=v3 info=\"creating upgraded release for weave-scope\" targetNamespace=default release=weave-scope\nts=2020-07-29T22:25:07.348401215Z caller=helm.go:69 component=helm version=v3 info=\"checking 8 resources for changes\" targetNamespace=default release=weave-scope\nts=2020-07-29T22:25:07.463503895Z caller=helm.go:69 component=helm version=v3 info=\"updating status for upgraded release for weave-scope\" targetNamespace=default release=weave-scope\nts=2020-07-29T22:25:07.506436867Z caller=release.go:364 component=release release=weave-scope targetNamespace=default resource=default:helmrelease/weave-scope helmVersion=v3 info=\"upgrade succeeded\" revision=1.1.10 phase=upgrade\n```\n\nProfit!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaada%2Fhelm-operator-migrate-2to3-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaada%2Fhelm-operator-migrate-2to3-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaada%2Fhelm-operator-migrate-2to3-demo/lists"}