Merge pull request #60 from mxey/sync-args

Add --args option to sync command
This commit is contained in:
KUOKA Yusuke 2018-03-24 22:57:26 +09:00 committed by GitHub
commit 5aa7da98af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

10
main.go
View File

@ -174,6 +174,11 @@ func main() {
Value: 0,
Usage: "maximum number of concurrent helm processes to run, 0 is unlimited",
},
cli.StringFlag{
Name: "args",
Value: "",
Usage: "pass args to helm exec",
},
},
Action: func(c *cli.Context) error {
state, helm, err := before(c)
@ -191,6 +196,11 @@ func main() {
values := c.StringSlice("values")
workers := c.Int("concurrency")
args := c.String("args")
if len(args) > 0 {
helm.SetExtraArgs(strings.Split(args, " ")...)
}
errs := state.SyncReleases(helm, values, workers)
return clean(state, errs)
},