List all helm releases (#1755)

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!
mine
Anthony 2022-09-22 05:26:33 +10:00 committed by GitHub
parent 403cc63ddd
commit bd677cc01b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 1 deletions

View File

@ -31,7 +31,18 @@ func (h *Helm) List(ctx context.Context, ns string) ([]runtime.Object, error) {
if err != nil { if err != nil {
return nil, err 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 { if err != nil {
return nil, err return nil, err
} }