flags enabled

This commit is contained in:
Ivan Pedrazas
2016-12-12 18:37:14 +00:00
parent 757976f0dc
commit 57504b4346
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -46,4 +46,4 @@ To test the plugin, you can run `minikube` and just run the docker image as foll
Happy Helming!
Happy Helming!
+2
View File
@@ -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 {
+2 -1
View File
@@ -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 {