Fix patching not using release namespace (#1300)

Ref #1299
This commit is contained in:
KUOKA Yusuke
2020-06-09 16:40:13 +09:00
committed by GitHub
parent 604af3f1d2
commit ca844aa044
+2
View File
@@ -33,6 +33,8 @@ func (st *HelmState) PrepareChartify(helm helmexec.Interface, release *ReleaseSp
opts.ChartVersion = release.Version
opts.Namespace = release.Namespace
dir := filepath.Join(st.basePath, release.Chart)
if stat, _ := os.Stat(dir); stat != nil && stat.IsDir() {
if exists, err := st.fileExists(filepath.Join(dir, "Chart.yaml")); err == nil && !exists {