From 5d3ae6879b200a30f06a124ea6299540d7581843 Mon Sep 17 00:00:00 2001 From: fabiankramm Date: Tue, 9 Jun 2020 11:30:04 +0200 Subject: [PATCH] discard warnings during install in helm template Signed-off-by: fabiankramm --- cmd/helm/template.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/helm/template.go b/cmd/helm/template.go index a4438b50c..17bf958c6 100644 --- a/cmd/helm/template.go +++ b/cmd/helm/template.go @@ -20,6 +20,7 @@ import ( "bytes" "fmt" "io" + "io/ioutil" "path/filepath" "regexp" "sort" @@ -63,7 +64,7 @@ func newTemplateCmd(cfg *action.Configuration, out io.Writer) *cobra.Command { client.ClientOnly = !validate client.APIVersions = chartutil.VersionSet(extraAPIs) client.IncludeCRDs = includeCrds - rel, err := runInstall(args, client, valueOpts, out) + rel, err := runInstall(args, client, valueOpts, ioutil.Discard) if err != nil && !settings.Debug { if rel != nil {