From 2eb13c25c59a7abb2690c3ed14629d3925d0e3dd Mon Sep 17 00:00:00 2001 From: KUOKA Yusuke Date: Thu, 27 Sep 2018 02:22:18 +0900 Subject: [PATCH] fix: helmfile should pass release names to `helm template` (#365) Fixes #360 --- state/state.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/state/state.go b/state/state.go index 931e54ac..ccf23c8b 100644 --- a/state/state.go +++ b/state/state.go @@ -957,7 +957,9 @@ func (state *HelmState) flagsForUpgrade(helm helmexec.Interface, release *Releas } func (state *HelmState) flagsForTemplate(helm helmexec.Interface, release *ReleaseSpec) ([]string, error) { - flags := []string{} + flags := []string{ + "--name", release.Name, + } common, err := state.namespaceAndValuesFlags(helm, release) if err != nil { return nil, err