From 03d167152703d7544e3109bb6c9a8db1bbc6113d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ga=C3=9F?= Date: Thu, 22 Mar 2018 13:51:06 +0100 Subject: [PATCH] Add --args option to sync command --- main.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/main.go b/main.go index a3c64815..69e9ead4 100644 --- a/main.go +++ b/main.go @@ -167,6 +167,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) @@ -184,6 +189,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) },