From 07a1b8b017024c215116db6a6cf32ad5e252ffa2 Mon Sep 17 00:00:00 2001 From: Luis Davim Date: Wed, 12 May 2021 12:25:31 +0100 Subject: [PATCH] fix: add missing flags --- internal/app/release.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/app/release.go b/internal/app/release.go index a4fcc21a..eeeaa424 100644 --- a/internal/app/release.go +++ b/internal/app/release.go @@ -184,7 +184,7 @@ func (r *release) diff() (string, error) { cmd := CmdPipe{helmCmd(args, desc)} if flags.kubectlDiff { - cmd = append(cmd, kubectl([]string{"diff", "-f", "-"}, desc)) + cmd = append(cmd, kubectl([]string{"diff", "--namespace", r.Namespace, "-f", "-"}, desc)) } res, err := cmd.RetryExec(3) @@ -403,7 +403,7 @@ func (r *release) getHelmArgsFor(action string, optionalNamespaceOverride ...str } switch action { case "template": - return concat([]string{"template", r.Name, r.Chart, "--version", r.Version, "--namespace", r.Namespace}, r.getValuesFiles(), r.getSetValues(), r.getSetStringValues(), r.getSetFileValues(), r.getPostRenderer()) + return concat([]string{"template", r.Name, r.Chart, "--version", r.Version, "--namespace", r.Namespace, "--skip-tests", "--no-hooks"}, r.getValuesFiles(), r.getSetValues(), r.getSetStringValues(), r.getSetFileValues(), r.getPostRenderer()) case "install", "upgrade": return concat([]string{"upgrade", r.Name, r.Chart, "--install", "--version", r.Version, "--namespace", r.Namespace}, r.getValuesFiles(), r.getSetValues(), r.getSetStringValues(), r.getSetFileValues(), r.getHelmFlags(), r.getPostRenderer()) case "diff":