Move helm version definitions into versions.go
Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
parent
c38a5945ca
commit
2ad1250a85
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
},
|
||||
}
|
||||
Loading…
Reference in New Issue