From 57504b434615d9d612a6554d40096a07f79eeb44 Mon Sep 17 00:00:00 2001 From: Ivan Pedrazas Date: Mon, 12 Dec 2016 18:37:14 +0000 Subject: [PATCH] flags enabled --- README.md | 2 +- main.go | 2 ++ plugin.go | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5cccc7b..4b58e0e 100644 --- a/README.md +++ b/README.md @@ -46,4 +46,4 @@ To test the plugin, you can run `minikube` and just run the docker image as foll -Happy Helming! \ No newline at end of file +Happy Helming! diff --git a/main.go b/main.go index 6d9705f..36c5a49 100644 --- a/main.go +++ b/main.go @@ -88,6 +88,8 @@ func run(c *cli.Context) error { Values: c.String("values"), Release: c.String("release"), Chart: c.String("chart"), + Debug: c.Bool("debug"), + DryRun: c.Bool("dry-run"), }, } if plugin.Config.Debug { diff --git a/plugin.go b/plugin.go index b771492..d0bc3dc 100644 --- a/plugin.go +++ b/plugin.go @@ -71,8 +71,9 @@ func (p *Plugin) Exec() error { if err != nil { return fmt.Errorf("Error running helm comand: " + strings.Join(init[:], " ")) } + setHelmCommand(p) if p.Config.Debug { - log.Println("helm comand: " + strings.Join(init[:], " ")) + log.Println("helm comand: " + strings.Join(p.Config.HelmCommand[:], " ")) } err = runCommand(p.Config.HelmCommand) if err != nil {