Append KubeContext to temporary directory path (#1471)

Fix bug where KubeContext is not taken into account in temporary directories
This commit is contained in:
Jason Witkowski
2020-09-13 09:46:08 +09:00
committed by GitHub
parent 2d7c8e7525
commit 87d04f0202
+4
View File
@@ -972,6 +972,10 @@ func (st *HelmState) PrepareCharts(helm helmexec.Interface, dir string, concurre
pathElems = append(pathElems, release.Namespace)
}
if release.KubeContext != "" {
pathElems = append(pathElems, release.KubeContext)
}
chartVersion := "latest"
if release.Version != "" {
chartVersion = release.Version