Adding in option to pass in --args
This commit is contained in:
parent
53408e18b3
commit
6585bf1842
10
main.go
10
main.go
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue