mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-17 21:48:25 +02:00
Adding in option to pass in --args
This commit is contained in:
@@ -111,6 +111,11 @@ func main() {
|
||||
Name: "diff",
|
||||
Usage: "diff charts from state file against env (helm diff)",
|
||||
Flags: []cli.Flag{
|
||||
cli.StringFlag{
|
||||
Name: "args",
|
||||
Value: "",
|
||||
Usage: "pass args to helm exec",
|
||||
},
|
||||
cli.StringSliceFlag{
|
||||
Name: "values",
|
||||
Usage: "additional value files to be merged into the command",
|
||||
@@ -126,6 +131,11 @@ func main() {
|
||||
return err
|
||||
}
|
||||
|
||||
args := c.String("args")
|
||||
if len(args) > 0 {
|
||||
helm.SetExtraArgs(strings.Split(args, " ")...)
|
||||
}
|
||||
|
||||
if c.Bool("sync-repos") {
|
||||
if errs := state.SyncRepos(helm); errs != nil && len(errs) > 0 {
|
||||
for _, err := range errs {
|
||||
|
||||
Reference in New Issue
Block a user