mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-09 13:35:52 +02:00
clean: helm v2 logic code (#736)
Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user