From c5ce590c4bac5c482cde3f9c9576a34992b4c55f Mon Sep 17 00:00:00 2001 From: Jacob McCann Date: Tue, 17 Apr 2018 15:48:54 -0500 Subject: [PATCH] allow passing some params to delete: dry_run, tiller_ns --- plugin.go | 8 ++++++++ 1 file changed, 8 insertions(+) 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 }