From 35e48f44154ab6bc9f435f46945639b4bf2681b5 Mon Sep 17 00:00:00 2001 From: mimmus Date: Fri, 30 Jun 2023 11:41:11 +0200 Subject: [PATCH] Fix to get all releases statuses and not only deployed/failed (default) By default, like "helm list", only deployed and failed status are returned. If you want all releases statuses, like "helm list --all", you need this fix --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 7a1ae74..f57f49c 100644 --- a/main.go +++ b/main.go @@ -155,6 +155,8 @@ func runStats(config config.Config, info *prometheus.GaugeVec, timestamp *promet for _, client := range clients.Items() { list := action.NewList(client.(*action.Configuration)) + list.All = true + list.SetStateMask() items, err := list.Run() if err != nil { log.Warnf("got error while listing %v", err)