1
0
mirror of https://github.com/helm/chart-testing.git synced 2026-02-05 09:45:14 +01:00

reading helm version using template (#474)

Signed-off-by: Sushanta Das <sushanta.das.ju@gmail.com>

Signed-off-by: Sushanta Das <sushanta.das.ju@gmail.com>
This commit is contained in:
Sushanta Das
2022-09-26 15:42:46 +05:30
committed by GitHub
parent f554590e9a
commit 76b2ef0043

View File

@@ -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 }}")
}