From 76b2ef004391993c5dcf728597a5316e2a519b31 Mon Sep 17 00:00:00 2001 From: Sushanta Das Date: Mon, 26 Sep 2022 15:42:46 +0530 Subject: [PATCH] reading helm version using template (#474) Signed-off-by: Sushanta Das Signed-off-by: Sushanta Das --- pkg/tool/helm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/tool/helm.go b/pkg/tool/helm.go index f7715d6..4b5f763 100644 --- a/pkg/tool/helm.go +++ b/pkg/tool/helm.go @@ -90,5 +90,5 @@ func (h Helm) DeleteRelease(namespace string, release string) { } func (h Helm) Version() (string, error) { - return h.exec.RunProcessAndCaptureStdout("helm", "version", "--short") + return h.exec.RunProcessAndCaptureStdout("helm", "version", "--template", "{{ .Version }}") }