clean: helm v2 logic code (#736)

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero
2023-03-12 00:28:39 +08:00
committed by GitHub
parent ccc69399e5
commit 5cdec2dd51
3 changed files with 0 additions and 16 deletions
-6
View File
@@ -18,7 +18,6 @@ import (
"helm.sh/helm/v3/pkg/cli"
"helm.sh/helm/v3/pkg/plugin"
"github.com/helmfile/helmfile/pkg/envvar"
"github.com/helmfile/helmfile/pkg/yaml"
)
@@ -72,11 +71,6 @@ func parseHelmVersion(versionStr string) (semver.Version, error) {
return semver.Version{}, fmt.Errorf("error parsing helm version '%s'", versionStr)
}
// Support explicit helm3 opt-in via environment variable
if os.Getenv(envvar.Helm3) != "" && ver.Major() < 3 {
return *semver.MustParse("v3.0.0"), nil
}
return *ver, nil
}