Add --args option to sync command
This commit is contained in:
parent
e81541d65c
commit
03d1671527
10
main.go
10
main.go
|
|
@ -167,6 +167,11 @@ func main() {
|
||||||
Value: 0,
|
Value: 0,
|
||||||
Usage: "maximum number of concurrent helm processes to run, 0 is unlimited",
|
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 {
|
Action: func(c *cli.Context) error {
|
||||||
state, helm, err := before(c)
|
state, helm, err := before(c)
|
||||||
|
|
@ -184,6 +189,11 @@ func main() {
|
||||||
values := c.StringSlice("values")
|
values := c.StringSlice("values")
|
||||||
workers := c.Int("concurrency")
|
workers := c.Int("concurrency")
|
||||||
|
|
||||||
|
args := c.String("args")
|
||||||
|
if len(args) > 0 {
|
||||||
|
helm.SetExtraArgs(strings.Split(args, " ")...)
|
||||||
|
}
|
||||||
|
|
||||||
errs := state.SyncReleases(helm, values, workers)
|
errs := state.SyncReleases(helm, values, workers)
|
||||||
return clean(state, errs)
|
return clean(state, errs)
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue