|
|
|
@ -157,11 +157,18 @@ func newReleaseListWriter(releases []*release.Release, timeFormat string) *relea
|
|
|
|
|
Namespace: r.Namespace,
|
|
|
|
|
Revision: strconv.Itoa(r.Version),
|
|
|
|
|
Status: r.Info.Status.String(),
|
|
|
|
|
Chart: fmt.Sprintf("%s-%s", r.Chart.Metadata.Name, r.Chart.Metadata.Version),
|
|
|
|
|
AppVersion: r.Chart.Metadata.AppVersion,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
t := "-"
|
|
|
|
|
|
|
|
|
|
if r.Chart != nil {
|
|
|
|
|
element.Chart = fmt.Sprintf("%s-%s", r.Chart.Metadata.Name, r.Chart.Metadata.Version)
|
|
|
|
|
element.AppVersion = r.Chart.Metadata.AppVersion
|
|
|
|
|
} else {
|
|
|
|
|
element.Chart = t
|
|
|
|
|
element.AppVersion = t
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if tspb := r.Info.LastDeployed; !tspb.IsZero() {
|
|
|
|
|
if timeFormat != "" {
|
|
|
|
|
t = tspb.Format(timeFormat)
|
|
|
|
|