From 7c9e799fe727da7391e5e08fe2d80470d31d654b Mon Sep 17 00:00:00 2001 From: Matt Butcher Date: Thu, 19 May 2016 15:00:33 -0600 Subject: [PATCH] fix(helm): print status in helm list output This prints the status in the long output of helm list, --- cmd/helm/list.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/helm/list.go b/cmd/helm/list.go index b9d954cff..1f1bd0fca 100644 --- a/cmd/helm/list.go +++ b/cmd/helm/list.go @@ -108,11 +108,12 @@ func listCmd(cmd *cobra.Command, args []string) error { func formatList(rels []*release.Release) error { table := uitable.New() table.MaxColWidth = 30 - table.AddRow("NAME", "UPDATED", "CHART") + table.AddRow("NAME", "UPDATED", "STATUS", "CHART") for _, r := range rels { c := fmt.Sprintf("%s-%s", r.Chart.Metadata.Name, r.Chart.Metadata.Version) t := timeconv.String(r.Info.LastDeployed) - table.AddRow(r.Name, t, c) + s := r.Info.Status.Code.String() + table.AddRow(r.Name, t, s, c) } fmt.Println(table)