|
|
@ -73,6 +73,7 @@ type listCmd struct {
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|