create namespace resource if not found

This commit is contained in:
Jingfang Liu
2018-10-18 13:46:50 -07:00
parent 368b7f3939
commit a5f0d457ec
3 changed files with 59 additions and 8 deletions

View File

@@ -275,7 +275,7 @@ func (kt *KustTarget) newTransformer(patches []*resource.Resource) (transformers
}
r = append(r, t)
r = append(r, transformers.NewNamespaceTransformer(
string(kt.kustomization.Namespace), kt.tcfg.NameSpace))
string(kt.kustomization.Namespace), kt.tcfg.NameSpace, kt.rf.RF()))
t, err = transformers.NewNamePrefixTransformer(
string(kt.kustomization.NamePrefix), kt.tcfg.NamePrefix)
if err != nil {