|
|
@ -57,22 +57,23 @@ flag with the '--offset' flag allows you to page through results.
|
|
|
|
`
|
|
|
|
`
|
|
|
|
|
|
|
|
|
|
|
|
type listCmd struct {
|
|
|
|
type listCmd struct {
|
|
|
|
filter string
|
|
|
|
filter string
|
|
|
|
short bool
|
|
|
|
short bool
|
|
|
|
limit int
|
|
|
|
limit int
|
|
|
|
offset string
|
|
|
|
offset string
|
|
|
|
byDate bool
|
|
|
|
byDate bool
|
|
|
|
sortDesc bool
|
|
|
|
sortDesc bool
|
|
|
|
out io.Writer
|
|
|
|
out io.Writer
|
|
|
|
all bool
|
|
|
|
all bool
|
|
|
|
deleted bool
|
|
|
|
deleted bool
|
|
|
|
deleting bool
|
|
|
|
deleting bool
|
|
|
|
deployed bool
|
|
|
|
deployed bool
|
|
|
|
failed bool
|
|
|
|
failed bool
|
|
|
|
superseded bool
|
|
|
|
superseded bool
|
|
|
|
pending bool
|
|
|
|
pending bool
|
|
|
|
client helm.Interface
|
|
|
|
client helm.Interface
|
|
|
|
colWidth uint
|
|
|
|
colWidth uint
|
|
|
|
|
|
|
|
allNamespaces bool
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func newListCmd(client helm.Interface, out io.Writer) *cobra.Command {
|
|
|
|
func newListCmd(client helm.Interface, out io.Writer) *cobra.Command {
|
|
|
@ -90,7 +91,7 @@ func newListCmd(client helm.Interface, out io.Writer) *cobra.Command {
|
|
|
|
if len(args) > 0 {
|
|
|
|
if len(args) > 0 {
|
|
|
|
list.filter = strings.Join(args, " ")
|
|
|
|
list.filter = strings.Join(args, " ")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
list.client = ensureHelmClient(list.client)
|
|
|
|
list.client = ensureHelmClient(list.client, list.allNamespaces)
|
|
|
|
return list.run()
|
|
|
|
return list.run()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -108,9 +109,7 @@ func newListCmd(client helm.Interface, out io.Writer) *cobra.Command {
|
|
|
|
f.BoolVar(&list.failed, "failed", false, "show failed releases")
|
|
|
|
f.BoolVar(&list.failed, "failed", false, "show failed releases")
|
|
|
|
f.BoolVar(&list.pending, "pending", false, "show pending releases")
|
|
|
|
f.BoolVar(&list.pending, "pending", false, "show pending releases")
|
|
|
|
f.UintVar(&list.colWidth, "col-width", 60, "specifies the max column width of output")
|
|
|
|
f.UintVar(&list.colWidth, "col-width", 60, "specifies the max column width of output")
|
|
|
|
|
|
|
|
f.BoolVar(&list.allNamespaces, "all-namespaces", false, "list releases across all namespaces")
|
|
|
|
// TODO: Do we want this as a feature of 'helm list'?
|
|
|
|
|
|
|
|
//f.BoolVar(&list.superseded, "history", true, "show historical releases")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return cmd
|
|
|
|
return cmd
|
|
|
|
}
|
|
|
|
}
|
|
|
|