Merge pull request #1442 from roboll/fix-duplicate-with-kubectx-per-release

Fix kubeContext not taken into account for release uniqueness
This commit is contained in:
Yusuke Kuoka 2020-08-29 11:45:13 +09:00 committed by GitHub
commit c575587e1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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 + "/"