Mujib 3 days ago committed by GitHub
commit bfa3ce4e52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -299,11 +299,6 @@ func (l *List) filterSelector(releases []*release.Release, selector labels.Selec
// SetStateMask calculates the state mask based on parameters. // SetStateMask calculates the state mask based on parameters.
func (l *List) SetStateMask() { func (l *List) SetStateMask() {
if l.All {
l.StateMask = ListAll
return
}
state := ListStates(0) state := ListStates(0)
if l.Deployed { if l.Deployed {
state |= ListDeployed state |= ListDeployed

@ -134,7 +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.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.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.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", true, "show all releases without any filter applied")
bindOutputFlag(cmd, &outfmt) bindOutputFlag(cmd, &outfmt)
f.MarkHidden("all")
return cmd return cmd
} }

Loading…
Cancel
Save