Commit 0889312b authored by Matt Butcher's avatar Matt Butcher

Merge pull request #733 from technosophos/fix/728-status

fix(helm): print status in helm list output
parents 5ddae22a 7c9e799f
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment