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

fix(helm): print status in helm list output
pull/735/merge
Matt Butcher 9 years ago
commit 0889312b1a

@ -108,11 +108,12 @@ func listCmd(cmd *cobra.Command, args []string) error {
func formatList(rels []*release.Release) error { func formatList(rels []*release.Release) error {
table := uitable.New() table := uitable.New()
table.MaxColWidth = 30 table.MaxColWidth = 30
table.AddRow("NAME", "UPDATED", "CHART") table.AddRow("NAME", "UPDATED", "STATUS", "CHART")
for _, r := range rels { for _, r := range rels {
c := fmt.Sprintf("%s-%s", r.Chart.Metadata.Name, r.Chart.Metadata.Version) c := fmt.Sprintf("%s-%s", r.Chart.Metadata.Name, r.Chart.Metadata.Version)
t := timeconv.String(r.Info.LastDeployed) 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) fmt.Println(table)

Loading…
Cancel
Save