From cff32ff736f1707e5f2b33f5501ef56925641d4d 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> --- cmd/helm/status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/helm/status.go b/cmd/helm/status.go index 636528675..725b3f367 100644 --- a/cmd/helm/status.go +++ b/cmd/helm/status.go @@ -144,7 +144,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("")