fixed issue 2896

This commit is contained in:
Natasha Sarkar
2020-09-25 14:59:49 -07:00
parent 4c48a4ff83
commit bd534441ce
3 changed files with 9 additions and 3 deletions

View File

@@ -143,9 +143,12 @@ func (p *plugin) applySMPatch(resource, patch *resource.Resource) error {
if err != nil {
return err
}
return filtersutil.ApplyToJSON(patchstrategicmerge.Filter{
n := resource.GetName()
err = filtersutil.ApplyToJSON(patchstrategicmerge.Filter{
Patch: node,
}, resource)
resource.SetName(n)
return err
}
// transformJson6902 applies the provided json6902 patch