From 6bb9264e89e67473f51424f6100c28e60dca3a20 Mon Sep 17 00:00:00 2001 From: Matthew Fisher Date: Wed, 13 Mar 2019 08:02:43 -0700 Subject: [PATCH] fix(helm): fix `helm status` output formatting Signed-off-by: Matthew Fisher --- .../dependency-list-no-chart-windows.txt | 1 - ...ependency-list-no-requirements-windows.txt | 1 - .../testdata/output/install-and-replace.txt | 2 +- .../testdata/output/install-name-template.txt | 2 +- cmd/helm/testdata/output/install-no-hooks.txt | 2 +- .../install-with-multiple-values-files.txt | 2 +- .../output/install-with-multiple-values.txt | 2 +- .../testdata/output/install-with-timeout.txt | 2 +- .../output/install-with-values-file.txt | 2 +- .../testdata/output/install-with-values.txt | 2 +- .../testdata/output/install-with-wait.txt | 2 +- cmd/helm/testdata/output/install.txt | 2 +- cmd/helm/testdata/output/list-with-failed.txt | 2 - .../list-with-mulitple-flags-deleting.txt | 2 - .../list-with-mulitple-flags-namespaced.txt | 2 - .../list-with-mulitple-flags-pending.txt | 2 - .../output/list-with-mulitple-flags.txt | 2 - .../output/list-with-mulitple-flags2.txt | 2 - .../output/list-with-old-releases.txt | 3 - .../testdata/output/list-with-pending.txt | 4 -- .../testdata/output/list-with-release.txt | 2 - cmd/helm/testdata/output/list.txt | 2 - .../testdata/output/status-with-notes.txt | 2 +- .../testdata/output/status-with-resource.txt | 2 +- .../output/status-with-test-suite.txt | 2 +- cmd/helm/testdata/output/status.txt | 2 +- .../testdata/output/template-absolute.txt | 22 ------- .../testdata/output/template-kube-version.txt | 58 ------------------ cmd/helm/testdata/output/template-name.txt | 58 ------------------ cmd/helm/testdata/output/template-notes.txt | 61 ------------------- .../output/upgrade-with-install-timeout.txt | 2 +- .../testdata/output/upgrade-with-install.txt | 2 +- .../output/upgrade-with-reset-values.txt | 2 +- .../output/upgrade-with-reset-values2.txt | 2 +- .../testdata/output/upgrade-with-timeout.txt | 2 +- .../testdata/output/upgrade-with-wait.txt | 2 +- cmd/helm/testdata/output/upgrade.txt | 2 +- pkg/action/printer.go | 2 +- 38 files changed, 22 insertions(+), 246 deletions(-) delete mode 100644 cmd/helm/testdata/output/dependency-list-no-chart-windows.txt delete mode 100644 cmd/helm/testdata/output/dependency-list-no-requirements-windows.txt delete mode 100644 cmd/helm/testdata/output/list-with-failed.txt delete mode 100644 cmd/helm/testdata/output/list-with-mulitple-flags-deleting.txt delete mode 100644 cmd/helm/testdata/output/list-with-mulitple-flags-namespaced.txt delete mode 100644 cmd/helm/testdata/output/list-with-mulitple-flags-pending.txt delete mode 100644 cmd/helm/testdata/output/list-with-mulitple-flags.txt delete mode 100644 cmd/helm/testdata/output/list-with-mulitple-flags2.txt delete mode 100644 cmd/helm/testdata/output/list-with-old-releases.txt delete mode 100644 cmd/helm/testdata/output/list-with-pending.txt delete mode 100644 cmd/helm/testdata/output/list-with-release.txt delete mode 100644 cmd/helm/testdata/output/list.txt delete mode 100644 cmd/helm/testdata/output/template-absolute.txt delete mode 100644 cmd/helm/testdata/output/template-kube-version.txt delete mode 100644 cmd/helm/testdata/output/template-name.txt delete mode 100644 cmd/helm/testdata/output/template-notes.txt diff --git a/cmd/helm/testdata/output/dependency-list-no-chart-windows.txt b/cmd/helm/testdata/output/dependency-list-no-chart-windows.txt deleted file mode 100644 index 8127e347d..000000000 --- a/cmd/helm/testdata/output/dependency-list-no-chart-windows.txt +++ /dev/null @@ -1 +0,0 @@ -Error: FindFirstFile \no\such\chart: The system cannot find the path specified. diff --git a/cmd/helm/testdata/output/dependency-list-no-requirements-windows.txt b/cmd/helm/testdata/output/dependency-list-no-requirements-windows.txt deleted file mode 100644 index c1ba49d24..000000000 --- a/cmd/helm/testdata/output/dependency-list-no-requirements-windows.txt +++ /dev/null @@ -1 +0,0 @@ -WARNING: no dependencies at testdata\testcharts\alpine\charts diff --git a/cmd/helm/testdata/output/install-and-replace.txt b/cmd/helm/testdata/output/install-and-replace.txt index 4df13b70e..21fc9db6e 100644 --- a/cmd/helm/testdata/output/install-and-replace.txt +++ b/cmd/helm/testdata/output/install-and-replace.txt @@ -1,4 +1,4 @@ -NAME: aeneas +NAME: aeneas LAST DEPLOYED: 1977-09-02 22:04:05 +0000 UTC NAMESPACE: default STATUS: deployed diff --git a/cmd/helm/testdata/output/install-name-template.txt b/cmd/helm/testdata/output/install-name-template.txt index 4389775ab..63ea1d4c3 100644 --- a/cmd/helm/testdata/output/install-name-template.txt +++ b/cmd/helm/testdata/output/install-name-template.txt @@ -1,4 +1,4 @@ -NAME: FOOBAR +NAME: FOOBAR LAST DEPLOYED: 1977-09-02 22:04:05 +0000 UTC NAMESPACE: default STATUS: deployed diff --git a/cmd/helm/testdata/output/install-no-hooks.txt b/cmd/helm/testdata/output/install-no-hooks.txt index 4df13b70e..21fc9db6e 100644 --- a/cmd/helm/testdata/output/install-no-hooks.txt +++ b/cmd/helm/testdata/output/install-no-hooks.txt @@ -1,4 +1,4 @@ -NAME: aeneas +NAME: aeneas LAST DEPLOYED: 1977-09-02 22:04:05 +0000 UTC NAMESPACE: default STATUS: deployed diff --git a/cmd/helm/testdata/output/install-with-multiple-values-files.txt b/cmd/helm/testdata/output/install-with-multiple-values-files.txt index 4f3c82375..05c879353 100644 --- a/cmd/helm/testdata/output/install-with-multiple-values-files.txt +++ b/cmd/helm/testdata/output/install-with-multiple-values-files.txt @@ -1,4 +1,4 @@ -NAME: virgil +NAME: virgil LAST DEPLOYED: 1977-09-02 22:04:05 +0000 UTC NAMESPACE: default STATUS: deployed diff --git a/cmd/helm/testdata/output/install-with-multiple-values.txt b/cmd/helm/testdata/output/install-with-multiple-values.txt index 4f3c82375..05c879353 100644 --- a/cmd/helm/testdata/output/install-with-multiple-values.txt +++ b/cmd/helm/testdata/output/install-with-multiple-values.txt @@ -1,4 +1,4 @@ -NAME: virgil +NAME: virgil LAST DEPLOYED: 1977-09-02 22:04:05 +0000 UTC NAMESPACE: default STATUS: deployed diff --git a/cmd/helm/testdata/output/install-with-timeout.txt b/cmd/helm/testdata/output/install-with-timeout.txt index dfa30eed0..ac2bb5550 100644 --- a/cmd/helm/testdata/output/install-with-timeout.txt +++ b/cmd/helm/testdata/output/install-with-timeout.txt @@ -1,4 +1,4 @@ -NAME: foobar +NAME: foobar LAST DEPLOYED: 1977-09-02 22:04:05 +0000 UTC NAMESPACE: default STATUS: deployed diff --git a/cmd/helm/testdata/output/install-with-values-file.txt b/cmd/helm/testdata/output/install-with-values-file.txt index 4f3c82375..05c879353 100644 --- a/cmd/helm/testdata/output/install-with-values-file.txt +++ b/cmd/helm/testdata/output/install-with-values-file.txt @@ -1,4 +1,4 @@ -NAME: virgil +NAME: virgil LAST DEPLOYED: 1977-09-02 22:04:05 +0000 UTC NAMESPACE: default STATUS: deployed diff --git a/cmd/helm/testdata/output/install-with-values.txt b/cmd/helm/testdata/output/install-with-values.txt index 4f3c82375..05c879353 100644 --- a/cmd/helm/testdata/output/install-with-values.txt +++ b/cmd/helm/testdata/output/install-with-values.txt @@ -1,4 +1,4 @@ -NAME: virgil +NAME: virgil LAST DEPLOYED: 1977-09-02 22:04:05 +0000 UTC NAMESPACE: default STATUS: deployed diff --git a/cmd/helm/testdata/output/install-with-wait.txt b/cmd/helm/testdata/output/install-with-wait.txt index 1955d4714..0ad49af8c 100644 --- a/cmd/helm/testdata/output/install-with-wait.txt +++ b/cmd/helm/testdata/output/install-with-wait.txt @@ -1,4 +1,4 @@ -NAME: apollo +NAME: apollo LAST DEPLOYED: 1977-09-02 22:04:05 +0000 UTC NAMESPACE: default STATUS: deployed diff --git a/cmd/helm/testdata/output/install.txt b/cmd/helm/testdata/output/install.txt index 4df13b70e..21fc9db6e 100644 --- a/cmd/helm/testdata/output/install.txt +++ b/cmd/helm/testdata/output/install.txt @@ -1,4 +1,4 @@ -NAME: aeneas +NAME: aeneas LAST DEPLOYED: 1977-09-02 22:04:05 +0000 UTC NAMESPACE: default STATUS: deployed diff --git a/cmd/helm/testdata/output/list-with-failed.txt b/cmd/helm/testdata/output/list-with-failed.txt deleted file mode 100644 index 6cacd15a0..000000000 --- a/cmd/helm/testdata/output/list-with-failed.txt +++ /dev/null @@ -1,2 +0,0 @@ -atlas-guide -thomas-guide diff --git a/cmd/helm/testdata/output/list-with-mulitple-flags-deleting.txt b/cmd/helm/testdata/output/list-with-mulitple-flags-deleting.txt deleted file mode 100644 index 6cacd15a0..000000000 --- a/cmd/helm/testdata/output/list-with-mulitple-flags-deleting.txt +++ /dev/null @@ -1,2 +0,0 @@ -atlas-guide -thomas-guide diff --git a/cmd/helm/testdata/output/list-with-mulitple-flags-namespaced.txt b/cmd/helm/testdata/output/list-with-mulitple-flags-namespaced.txt deleted file mode 100644 index 6cacd15a0..000000000 --- a/cmd/helm/testdata/output/list-with-mulitple-flags-namespaced.txt +++ /dev/null @@ -1,2 +0,0 @@ -atlas-guide -thomas-guide diff --git a/cmd/helm/testdata/output/list-with-mulitple-flags-pending.txt b/cmd/helm/testdata/output/list-with-mulitple-flags-pending.txt deleted file mode 100644 index 6cacd15a0..000000000 --- a/cmd/helm/testdata/output/list-with-mulitple-flags-pending.txt +++ /dev/null @@ -1,2 +0,0 @@ -atlas-guide -thomas-guide diff --git a/cmd/helm/testdata/output/list-with-mulitple-flags.txt b/cmd/helm/testdata/output/list-with-mulitple-flags.txt deleted file mode 100644 index 6cacd15a0..000000000 --- a/cmd/helm/testdata/output/list-with-mulitple-flags.txt +++ /dev/null @@ -1,2 +0,0 @@ -atlas-guide -thomas-guide diff --git a/cmd/helm/testdata/output/list-with-mulitple-flags2.txt b/cmd/helm/testdata/output/list-with-mulitple-flags2.txt deleted file mode 100644 index 6cacd15a0..000000000 --- a/cmd/helm/testdata/output/list-with-mulitple-flags2.txt +++ /dev/null @@ -1,2 +0,0 @@ -atlas-guide -thomas-guide diff --git a/cmd/helm/testdata/output/list-with-old-releases.txt b/cmd/helm/testdata/output/list-with-old-releases.txt deleted file mode 100644 index 0a0d11d3f..000000000 --- a/cmd/helm/testdata/output/list-with-old-releases.txt +++ /dev/null @@ -1,3 +0,0 @@ -NAME REVISION UPDATED STATUS CHART NAMESPACE -thomas-guide 1 1977-09-02 22:04:05 +0000 UTC deployed foo-0.1.0-beta.1 default -thomas-guide 2 1977-09-02 22:04:05 +0000 UTC failed foo-0.1.0-beta.1 default diff --git a/cmd/helm/testdata/output/list-with-pending.txt b/cmd/helm/testdata/output/list-with-pending.txt deleted file mode 100644 index c90e0e93d..000000000 --- a/cmd/helm/testdata/output/list-with-pending.txt +++ /dev/null @@ -1,4 +0,0 @@ -atlas-guide -crazy-maps -thomas-guide -wild-idea diff --git a/cmd/helm/testdata/output/list-with-release.txt b/cmd/helm/testdata/output/list-with-release.txt deleted file mode 100644 index 11b3397b5..000000000 --- a/cmd/helm/testdata/output/list-with-release.txt +++ /dev/null @@ -1,2 +0,0 @@ -NAME REVISION UPDATED STATUS CHART NAMESPACE -thomas-guide 1 1977-09-02 22:04:05 +0000 UTC deployed foo-0.1.0-beta.1 default diff --git a/cmd/helm/testdata/output/list.txt b/cmd/helm/testdata/output/list.txt deleted file mode 100644 index 819f60f6d..000000000 --- a/cmd/helm/testdata/output/list.txt +++ /dev/null @@ -1,2 +0,0 @@ -NAME REVISION UPDATED STATUS CHART NAMESPACE -atlas 1 1977-09-02 22:04:05 +0000 UTC deployed foo-0.1.0-beta.1 default diff --git a/cmd/helm/testdata/output/status-with-notes.txt b/cmd/helm/testdata/output/status-with-notes.txt index f4b88d14d..22a34368b 100644 --- a/cmd/helm/testdata/output/status-with-notes.txt +++ b/cmd/helm/testdata/output/status-with-notes.txt @@ -1,4 +1,4 @@ -NAME: flummoxed-chickadee +NAME: flummoxed-chickadee LAST DEPLOYED: 2016-01-16 00:00:00 +0000 UTC NAMESPACE: STATUS: deployed diff --git a/cmd/helm/testdata/output/status-with-resource.txt b/cmd/helm/testdata/output/status-with-resource.txt index b7c74ba68..b6aa27c66 100644 --- a/cmd/helm/testdata/output/status-with-resource.txt +++ b/cmd/helm/testdata/output/status-with-resource.txt @@ -1,4 +1,4 @@ -NAME: flummoxed-chickadee +NAME: flummoxed-chickadee LAST DEPLOYED: 2016-01-16 00:00:00 +0000 UTC NAMESPACE: STATUS: deployed diff --git a/cmd/helm/testdata/output/status-with-test-suite.txt b/cmd/helm/testdata/output/status-with-test-suite.txt index 44cf1bd02..057cab434 100644 --- a/cmd/helm/testdata/output/status-with-test-suite.txt +++ b/cmd/helm/testdata/output/status-with-test-suite.txt @@ -1,4 +1,4 @@ -NAME: flummoxed-chickadee +NAME: flummoxed-chickadee LAST DEPLOYED: 2016-01-16 00:00:00 +0000 UTC NAMESPACE: STATUS: deployed diff --git a/cmd/helm/testdata/output/status.txt b/cmd/helm/testdata/output/status.txt index bb8de4a06..cbd76fba2 100644 --- a/cmd/helm/testdata/output/status.txt +++ b/cmd/helm/testdata/output/status.txt @@ -1,4 +1,4 @@ -NAME: flummoxed-chickadee +NAME: flummoxed-chickadee LAST DEPLOYED: 2016-01-16 00:00:00 +0000 UTC NAMESPACE: STATUS: deployed diff --git a/cmd/helm/testdata/output/template-absolute.txt b/cmd/helm/testdata/output/template-absolute.txt deleted file mode 100644 index eede3b0b2..000000000 --- a/cmd/helm/testdata/output/template-absolute.txt +++ /dev/null @@ -1,22 +0,0 @@ ---- -# Source: subchart1/templates/service.yaml -apiVersion: v1 -kind: Service -metadata: - name: subchart1 - labels: - chart: "subchart1-0.1.0" - release-name: "RELEASE-NAME" - kube-version/major: "1" - kube-version/minor: "9" - kube-version/gitversion: "v1.9.0" -spec: - type: ClusterIP - ports: - - port: 80 - targetPort: 80 - protocol: TCP - name: apache - selector: - app: subchart1 - diff --git a/cmd/helm/testdata/output/template-kube-version.txt b/cmd/helm/testdata/output/template-kube-version.txt deleted file mode 100644 index 21c9b7aa7..000000000 --- a/cmd/helm/testdata/output/template-kube-version.txt +++ /dev/null @@ -1,58 +0,0 @@ ---- -# Source: subchart1/charts/subcharta/templates/service.yaml -apiVersion: v1 -kind: Service -metadata: - name: subcharta - labels: - chart: "subcharta-0.1.0" -spec: - type: ClusterIP - ports: - - port: 80 - targetPort: 80 - protocol: TCP - name: apache - selector: - app: subcharta - ---- -# Source: subchart1/charts/subchartb/templates/service.yaml -apiVersion: v1 -kind: Service -metadata: - name: subchartb - labels: - chart: "subchartb-0.1.0" -spec: - type: ClusterIP - ports: - - port: 80 - targetPort: 80 - protocol: TCP - name: nginx - selector: - app: subchartb - ---- -# Source: subchart1/templates/service.yaml -apiVersion: v1 -kind: Service -metadata: - name: subchart1 - labels: - chart: "subchart1-0.1.0" - release-name: "RELEASE-NAME" - kube-version/major: "1" - kube-version/minor: "6" - kube-version/gitversion: "v1.6.0" -spec: - type: ClusterIP - ports: - - port: 80 - targetPort: 80 - protocol: TCP - name: nginx - selector: - app: subchart1 - diff --git a/cmd/helm/testdata/output/template-name.txt b/cmd/helm/testdata/output/template-name.txt deleted file mode 100644 index a7fc5c286..000000000 --- a/cmd/helm/testdata/output/template-name.txt +++ /dev/null @@ -1,58 +0,0 @@ ---- -# Source: subchart1/charts/subcharta/templates/service.yaml -apiVersion: v1 -kind: Service -metadata: - name: subcharta - labels: - chart: "subcharta-0.1.0" -spec: - type: ClusterIP - ports: - - port: 80 - targetPort: 80 - protocol: TCP - name: apache - selector: - app: subcharta - ---- -# Source: subchart1/charts/subchartb/templates/service.yaml -apiVersion: v1 -kind: Service -metadata: - name: subchartb - labels: - chart: "subchartb-0.1.0" -spec: - type: ClusterIP - ports: - - port: 80 - targetPort: 80 - protocol: TCP - name: nginx - selector: - app: subchartb - ---- -# Source: subchart1/templates/service.yaml -apiVersion: v1 -kind: Service -metadata: - name: subchart1 - labels: - chart: "subchart1-0.1.0" - release-name: "test" - kube-version/major: "1" - kube-version/minor: "9" - kube-version/gitversion: "v1.9.0" -spec: - type: ClusterIP - ports: - - port: 80 - targetPort: 80 - protocol: TCP - name: nginx - selector: - app: subchart1 - diff --git a/cmd/helm/testdata/output/template-notes.txt b/cmd/helm/testdata/output/template-notes.txt deleted file mode 100644 index 812e36802..000000000 --- a/cmd/helm/testdata/output/template-notes.txt +++ /dev/null @@ -1,61 +0,0 @@ ---- -# Source: subchart1/charts/subcharta/templates/service.yaml -apiVersion: v1 -kind: Service -metadata: - name: subcharta - labels: - chart: "subcharta-0.1.0" -spec: - type: ClusterIP - ports: - - port: 80 - targetPort: 80 - protocol: TCP - name: apache - selector: - app: subcharta - ---- -# Source: subchart1/charts/subchartb/templates/service.yaml -apiVersion: v1 -kind: Service -metadata: - name: subchartb - labels: - chart: "subchartb-0.1.0" -spec: - type: ClusterIP - ports: - - port: 80 - targetPort: 80 - protocol: TCP - name: nginx - selector: - app: subchartb - ---- -# Source: subchart1/templates/service.yaml -apiVersion: v1 -kind: Service -metadata: - name: subchart1 - labels: - chart: "subchart1-0.1.0" - release-name: "RELEASE-NAME" - kube-version/major: "1" - kube-version/minor: "9" - kube-version/gitversion: "v1.9.0" -spec: - type: ClusterIP - ports: - - port: 80 - targetPort: 80 - protocol: TCP - name: nginx - selector: - app: subchart1 - ---- -# Source: subchart1/templates/NOTES.txt -Sample notes for subchart1 diff --git a/cmd/helm/testdata/output/upgrade-with-install-timeout.txt b/cmd/helm/testdata/output/upgrade-with-install-timeout.txt index 0b9b8bbd3..fb64f1f86 100644 --- a/cmd/helm/testdata/output/upgrade-with-install-timeout.txt +++ b/cmd/helm/testdata/output/upgrade-with-install-timeout.txt @@ -1,5 +1,5 @@ Release "crazy-bunny" has been upgraded. Happy Helming! -NAME: crazy-bunny +NAME: crazy-bunny LAST DEPLOYED: 1977-09-02 22:04:05 +0000 UTC NAMESPACE: default STATUS: deployed diff --git a/cmd/helm/testdata/output/upgrade-with-install.txt b/cmd/helm/testdata/output/upgrade-with-install.txt index 32ff2ea3f..8aba923a8 100644 --- a/cmd/helm/testdata/output/upgrade-with-install.txt +++ b/cmd/helm/testdata/output/upgrade-with-install.txt @@ -1,5 +1,5 @@ Release "zany-bunny" has been upgraded. Happy Helming! -NAME: zany-bunny +NAME: zany-bunny LAST DEPLOYED: 1977-09-02 22:04:05 +0000 UTC NAMESPACE: default STATUS: deployed diff --git a/cmd/helm/testdata/output/upgrade-with-reset-values.txt b/cmd/helm/testdata/output/upgrade-with-reset-values.txt index 5ca2adf84..4b0f9c309 100644 --- a/cmd/helm/testdata/output/upgrade-with-reset-values.txt +++ b/cmd/helm/testdata/output/upgrade-with-reset-values.txt @@ -1,5 +1,5 @@ Release "funny-bunny" has been upgraded. Happy Helming! -NAME: funny-bunny +NAME: funny-bunny LAST DEPLOYED: 1977-09-02 22:04:05 +0000 UTC NAMESPACE: default STATUS: deployed diff --git a/cmd/helm/testdata/output/upgrade-with-reset-values2.txt b/cmd/helm/testdata/output/upgrade-with-reset-values2.txt index 5ca2adf84..4b0f9c309 100644 --- a/cmd/helm/testdata/output/upgrade-with-reset-values2.txt +++ b/cmd/helm/testdata/output/upgrade-with-reset-values2.txt @@ -1,5 +1,5 @@ Release "funny-bunny" has been upgraded. Happy Helming! -NAME: funny-bunny +NAME: funny-bunny LAST DEPLOYED: 1977-09-02 22:04:05 +0000 UTC NAMESPACE: default STATUS: deployed diff --git a/cmd/helm/testdata/output/upgrade-with-timeout.txt b/cmd/helm/testdata/output/upgrade-with-timeout.txt index 5ca2adf84..4b0f9c309 100644 --- a/cmd/helm/testdata/output/upgrade-with-timeout.txt +++ b/cmd/helm/testdata/output/upgrade-with-timeout.txt @@ -1,5 +1,5 @@ Release "funny-bunny" has been upgraded. Happy Helming! -NAME: funny-bunny +NAME: funny-bunny LAST DEPLOYED: 1977-09-02 22:04:05 +0000 UTC NAMESPACE: default STATUS: deployed diff --git a/cmd/helm/testdata/output/upgrade-with-wait.txt b/cmd/helm/testdata/output/upgrade-with-wait.txt index 0b9b8bbd3..fb64f1f86 100644 --- a/cmd/helm/testdata/output/upgrade-with-wait.txt +++ b/cmd/helm/testdata/output/upgrade-with-wait.txt @@ -1,5 +1,5 @@ Release "crazy-bunny" has been upgraded. Happy Helming! -NAME: crazy-bunny +NAME: crazy-bunny LAST DEPLOYED: 1977-09-02 22:04:05 +0000 UTC NAMESPACE: default STATUS: deployed diff --git a/cmd/helm/testdata/output/upgrade.txt b/cmd/helm/testdata/output/upgrade.txt index 5ca2adf84..4b0f9c309 100644 --- a/cmd/helm/testdata/output/upgrade.txt +++ b/cmd/helm/testdata/output/upgrade.txt @@ -1,5 +1,5 @@ Release "funny-bunny" has been upgraded. Happy Helming! -NAME: funny-bunny +NAME: funny-bunny LAST DEPLOYED: 1977-09-02 22:04:05 +0000 UTC NAMESPACE: default STATUS: deployed diff --git a/pkg/action/printer.go b/pkg/action/printer.go index 409913d00..4ed0d39b8 100644 --- a/pkg/action/printer.go +++ b/pkg/action/printer.go @@ -34,7 +34,7 @@ func PrintRelease(out io.Writer, rel *release.Release) { if rel == nil { return } - fmt.Fprintf(out, "NAME: %s\n", rel.Name) + fmt.Fprintf(out, "NAME: %s\n", rel.Name) if !rel.Info.LastDeployed.IsZero() { fmt.Fprintf(out, "LAST DEPLOYED: %s\n", rel.Info.LastDeployed) }