From bdd532f0e771137576984726280fa6443e07d94e Mon Sep 17 00:00:00 2001 From: Mujib Ahasan Date: Wed, 11 Feb 2026 16:43:29 +0530 Subject: [PATCH 1/3] --all/-a flag added to helm list command Signed-off-by: Mujib Ahasan --- pkg/cmd/list.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/cmd/list.go b/pkg/cmd/list.go index 54becddca..f383d94f2 100644 --- a/pkg/cmd/list.go +++ b/pkg/cmd/list.go @@ -134,8 +134,11 @@ func newListCmd(cfg *action.Configuration, out io.Writer) *cobra.Command { f.IntVar(&client.Offset, "offset", 0, "next release index in the list, used to offset from start value") f.StringVarP(&client.Filter, "filter", "f", "", "a regular expression (Perl compatible). Any releases that match the expression will be included in the results") f.StringVarP(&client.Selector, "selector", "l", "", "Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Works only for secret(default) and configmap storage backends.") + f.BoolVarP(&client.All, "all", "a", false, "show all releases without any filter applied") bindOutputFlag(cmd, &outfmt) + f.MarkDeprecated("all", "this flag is no longer needed; 'helm list' shows all releases by default and it will be removed in a future release") + return cmd } From 812501e5cd56817f7620a71af1ace42df8d95301 Mon Sep 17 00:00:00 2001 From: Mujib Ahasan Date: Sat, 14 Feb 2026 00:32:30 +0530 Subject: [PATCH 2/3] change the default to true Signed-off-by: Mujib Ahasan --- pkg/cmd/list.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/cmd/list.go b/pkg/cmd/list.go index f383d94f2..161672bc7 100644 --- a/pkg/cmd/list.go +++ b/pkg/cmd/list.go @@ -134,10 +134,9 @@ func newListCmd(cfg *action.Configuration, out io.Writer) *cobra.Command { f.IntVar(&client.Offset, "offset", 0, "next release index in the list, used to offset from start value") f.StringVarP(&client.Filter, "filter", "f", "", "a regular expression (Perl compatible). Any releases that match the expression will be included in the results") f.StringVarP(&client.Selector, "selector", "l", "", "Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Works only for secret(default) and configmap storage backends.") - f.BoolVarP(&client.All, "all", "a", false, "show all releases without any filter applied") + f.BoolVarP(&client.All, "all", "a", true, "show all releases without any filter applied") bindOutputFlag(cmd, &outfmt) - - f.MarkDeprecated("all", "this flag is no longer needed; 'helm list' shows all releases by default and it will be removed in a future release") + f.MarkHidden("all") return cmd } From fe375c3b42a5fedf5a39039a6177f05091fe62ac Mon Sep 17 00:00:00 2001 From: Mujib Ahasan Date: Tue, 12 May 2026 20:45:17 +0530 Subject: [PATCH 3/3] fix broken build Signed-off-by: Mujib Ahasan --- pkg/action/list.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/action/list.go b/pkg/action/list.go index 06727bd9a..4f2f28f5b 100644 --- a/pkg/action/list.go +++ b/pkg/action/list.go @@ -300,11 +300,6 @@ func (l *List) filterSelector(releases []*release.Release, selector labels.Selec // SetStateMask calculates the state mask based on parameters. func (l *List) SetStateMask() { - if l.All { - l.StateMask = ListAll - return - } - state := ListStates(0) if l.Deployed { state |= ListDeployed