Add helmfile-fetch command to downloading and generating charts (#1734)

This commit is contained in:
Quan TRAN
2021-03-30 16:26:31 +09:00
committed by GitHub
parent faa74962e6
commit 53c6d2f988
6 changed files with 75 additions and 10 deletions
+30
View File
@@ -327,6 +327,28 @@ func main() {
return run.Lint(c)
}),
},
{
Name: "fetch",
Usage: "fetch charts from state file",
Flags: []cli.Flag{
cli.IntFlag{
Name: "concurrency",
Value: 0,
Usage: "maximum number of concurrent downloads of release charts",
},
cli.BoolFlag{
Name: "skip-deps",
Usage: `skip running "helm repo update" and "helm dependency build"`,
},
cli.StringFlag{
Name: "output-dir",
Usage: "directory to store charts (default: temporary directory which is deleted when the command terminates)",
},
},
Action: action(func(a *app.App, c configImpl) error {
return a.Fetch(c)
}),
},
{
Name: "sync",
Usage: "sync all resources from state file (repos, releases and chart deps)",
@@ -553,6 +575,10 @@ func main() {
Value: "",
Usage: "output releases list as a json string",
},
cli.BoolFlag{
Name: "keep-temp-dir",
Usage: "Keep temporary directory",
},
},
Action: action(func(run *app.App, c configImpl) error {
return run.ListReleases(c)
@@ -720,6 +746,10 @@ func (c configImpl) Output() string {
return c.c.String("output")
}
func (c configImpl) KeepTempDir() bool {
return c.c.Bool("keep-temp-dir")
}
// GlobalConfig
func (c configImpl) HelmBinary() string {