diff --git a/pkg/app/init.go b/pkg/app/init.go index f7cc3add..53b75a39 100644 --- a/pkg/app/init.go +++ b/pkg/app/init.go @@ -16,44 +16,12 @@ import ( "github.com/helmfile/helmfile/pkg/helmexec" ) -const ( - HelmRequiredVersion = "v3.16.4" - HelmRecommendedVersion = "v3.17.3" - HelmDiffRecommendedVersion = "v3.11.0" - HelmSecretsRecommendedVersion = "v4.6.3" - HelmGitRecommendedVersion = "v1.3.0" - HelmS3RecommendedVersion = "v0.16.3" - HelmInstallCommand = "https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3" -) - var ( manuallyInstallCode = 1 windowPackageManagers = map[string]string{ "scoop": fmt.Sprintf("scoop install helm@%s", strings.TrimLeft(HelmRecommendedVersion, "v")), "choco": fmt.Sprintf("choco install kubernetes-helm --version %s", strings.TrimLeft(HelmRecommendedVersion, "v")), } - helmPlugins = []helmRecommendedPlugin{ - { - name: "diff", - version: HelmDiffRecommendedVersion, - repo: "https://github.com/databus23/helm-diff", - }, - { - name: "secrets", - version: HelmSecretsRecommendedVersion, - repo: "https://github.com/jkroepke/helm-secrets", - }, - { - name: "s3", - version: HelmS3RecommendedVersion, - repo: "https://github.com/hypnoglow/helm-s3.git", - }, - { - name: "helm-git", - version: HelmGitRecommendedVersion, - repo: "https://github.com/aslafy-z/helm-git.git", - }, - } ) type helmRecommendedPlugin struct { diff --git a/pkg/app/versions.go b/pkg/app/versions.go new file mode 100644 index 00000000..5943a9d5 --- /dev/null +++ b/pkg/app/versions.go @@ -0,0 +1,34 @@ +package app + +const ( + HelmRequiredVersion = "v3.16.4" + HelmRecommendedVersion = "v3.17.3" + HelmDiffRecommendedVersion = "v3.11.0" + HelmSecretsRecommendedVersion = "v4.6.3" + HelmGitRecommendedVersion = "v1.3.0" + HelmS3RecommendedVersion = "v0.16.3" + HelmInstallCommand = "https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3" +) + +var helmPlugins = []helmRecommendedPlugin{ + { + name: "diff", + version: HelmDiffRecommendedVersion, + repo: "https://github.com/databus23/helm-diff", + }, + { + name: "secrets", + version: HelmSecretsRecommendedVersion, + repo: "https://github.com/jkroepke/helm-secrets", + }, + { + name: "s3", + version: HelmS3RecommendedVersion, + repo: "https://github.com/hypnoglow/helm-s3.git", + }, + { + name: "helm-git", + version: HelmGitRecommendedVersion, + repo: "https://github.com/aslafy-z/helm-git.git", + }, +}