From f2dfa7ce642f36c70a0957a62c0c830d52bae537 Mon Sep 17 00:00:00 2001 From: Yusuke Kuoka Date: Sat, 29 Aug 2020 11:33:05 +0900 Subject: [PATCH] Fix kubeContext not taken into account for release uniqueness Fixes #1440 --- pkg/state/state.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/state/state.go b/pkg/state/state.go index 3c2b8f36..41c7c27d 100644 --- a/pkg/state/state.go +++ b/pkg/state/state.go @@ -520,6 +520,11 @@ func (o *SyncOpts) Apply(opts *SyncOpts) { func ReleaseToID(r *ReleaseSpec) string { var id string + kc := r.KubeContext + if kc != "" { + id += kc + "/" + } + tns := r.TillerNamespace if tns != "" { id += tns + "/"