Push suffix/prefix code to plugin.

This commit is contained in:
jregan
2019-06-11 18:28:28 -07:00
parent fcc3082231
commit 11bb176a3f
19 changed files with 312 additions and 307 deletions

View File

@@ -64,7 +64,7 @@ func (o *mapTransformer) Transform(m resmap.ResMap) error {
if !r.Id().Gvk().IsSelected(&path.Gvk) {
continue
}
err := mutateField(
err := MutateField(
r.Map(), path.PathSlice(),
path.CreateIfNotPresent, o.addMap)
if err != nil {