Fix krm exec function working dir

This commit is contained in:
Ahmed AbouZaid
2022-10-09 15:22:42 +02:00
parent 1b1e6ccab0
commit d29febecb7
3 changed files with 29 additions and 3 deletions

View File

@@ -45,7 +45,9 @@ func NewKustTarget(
rFactory *resmap.Factory,
pLdr *loader.Loader) *KustTarget {
pLdrCopy := *pLdr
pLdrCopy.SetWorkDir(ldr.Root())
pLdrCopy.DeepCopyPluginConfig()
pLdrCopy.SetPluginConfigWorkingDir(ldr.Root())
return &KustTarget{
ldr: ldr,
validator: validator,