Delegate to Kunstructured.

This commit is contained in:
jregan
2020-06-19 14:30:02 -07:00
parent f2da1f621f
commit e783af2881
44 changed files with 204 additions and 229 deletions

View File

@@ -80,7 +80,7 @@ func (p *plugin) Transform(m resmap.ResMap) error {
return err
}
if !p.YAMLSupport {
err = target.Patch(patch.Kunstructured)
err = target.Patch(patch.Copy())
if err != nil {
return err
}
@@ -99,7 +99,7 @@ func (p *plugin) Transform(m resmap.ResMap) error {
}
err = filtersutil.ApplyToJSON(patchstrategicmerge.Filter{
Patch: node,
}, target.Kunstructured)
}, target)
}
}
return nil