diff --git a/cmd/helm/list.go b/cmd/helm/list.go index 18e5ffe45..dfa17d9bc 100644 --- a/cmd/helm/list.go +++ b/cmd/helm/list.go @@ -126,6 +126,7 @@ func newListCmd(cfg *action.Configuration, out io.Writer) *cobra.Command { f.IntVarP(&client.Limit, "max", "m", 256, "maximum number of releases to fetch") f.IntVar(&client.Offset, "offset", 0, "next release name 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)") bindOutputFlag(cmd, &outfmt) return cmd diff --git a/pkg/action/list.go b/pkg/action/list.go index 0f85de519..854a8942b 100644 --- a/pkg/action/list.go +++ b/pkg/action/list.go @@ -126,6 +126,7 @@ type List struct { Deployed bool Failed bool Pending bool + Selector string } // NewList constructs a new *List