Skip to content

Commit

Permalink
List all helm releases (#1755)
Browse files Browse the repository at this point in the history
On second thought, I'll accept your PR and will update the code to use `all` as I am getting ready for a new drop and would like to include your changes. Thanks Anthony!
  • Loading branch information
day1118 authored Sep 21, 2022
1 parent 403cc63 commit bd677cc
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion internal/dao/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,18 @@ func (h *Helm) List(ctx context.Context, ns string) ([]runtime.Object, error) {
if err != nil {
return nil, err
}
rr, err := action.NewList(cfg).Run()

// List all helm releases
client := action.NewList(cfg)
client.Uninstalled = true
client.Superseded = true
client.Uninstalling = true
client.Deployed = true
client.Failed = true
client.Pending = true
client.SetStateMask()

rr, err := client.Run()
if err != nil {
return nil, err
}
Expand Down

0 comments on commit bd677cc

Please sign in to comment.