feat: add helmfile template --validate (#1135)

This adds the ability for helmfile to call `helm template --validate` introduced in helm 3.

fixes #1105
This commit is contained in:
KUOKA Yusuke
2020-03-05 08:07:02 +09:00
committed by GitHub
parent 7c80a859fa
commit bf22502a2f
5 changed files with 24 additions and 2 deletions
+8
View File
@@ -236,6 +236,10 @@ func main() {
Value: 0,
Usage: "maximum number of concurrent downloads of release charts",
},
cli.BoolFlag{
Name: "validate",
Usage: "validate your manifests against the Kubernetes cluster you are currently pointing at",
},
cli.BoolFlag{
Name: "skip-deps",
Usage: "skip running `helm repo update` and `helm dependency build`",
@@ -528,6 +532,10 @@ func (c configImpl) OutputDir() string {
return c.c.String("output-dir")
}
func (c configImpl) Validate() bool {
return c.c.Bool("validate")
}
func (c configImpl) Concurrency() int {
return c.c.Int("concurrency")
}