From d36078d435e78c8e312dccbff4821cd20e6ac8b2 Mon Sep 17 00:00:00 2001 From: Justen Stall <39888103+justenstall@users.noreply.github.com> Date: Mon, 18 Nov 2024 22:28:48 -0500 Subject: [PATCH] restore --show-resources check in cmd/helm/status.go Signed-off-by: Justen Stall <39888103+justenstall@users.noreply.github.com> --- pkg/cmd/status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/status.go b/pkg/cmd/status.go index 3d1309c3e..d9dfbae91 100644 --- a/pkg/cmd/status.go +++ b/pkg/cmd/status.go @@ -143,7 +143,7 @@ func (s statusPrinter) WriteTable(out io.Writer) error { } _, _ = fmt.Fprintf(out, "DESCRIPTION: %s\n", s.release.Info.Description) - if len(s.release.Info.Resources) > 0 { + if s.showResources && s.release.Info.Resources != nil && len(s.release.Info.Resources) > 0 { buf := new(bytes.Buffer) printFlags := get.NewHumanPrintFlags() typePrinter, _ := printFlags.ToPrinter("")