Skip to content

Commit

Permalink
Fix to get all releases statuses and not only deployed/failed (defaul…
Browse files Browse the repository at this point in the history
…t) (#118)

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
  • Loading branch information
mimmus committed Jun 30, 2023
1 parent 9617158 commit d98c09a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d98c09a

Please sign in to comment.