diff --git a/plugin.go b/plugin.go index a82f49f..3b66d66 100644 --- a/plugin.go +++ b/plugin.go @@ -61,6 +61,14 @@ func setDeleteCommand(p *Plugin) { delete[0] = "delete" delete[1] = p.Config.Release + if p.Config.TillerNs != "" { + delete = append(delete, "--tiller-namespace") + delete = append(delete, p.Config.TillerNs) + } + if p.Config.DryRun { + delete = append(delete, "--dry-run") + } + p.command = delete }