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-12 20:46:08 -04:00 committed by GitHub
parent 2d7c8e7525
commit 87d04f0202
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

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