Simplify kind and name change code.

This commit is contained in:
monopole
2021-05-09 16:18:34 -07:00
parent fcfdf6be51
commit 82abd7e9ea
6 changed files with 27 additions and 30 deletions

View File

@@ -158,7 +158,8 @@ func UpdateResMapValues(pluginName string, h *resmap.PluginHelpers, output []byt
}
for _, r := range resources {
removeIDAnnotation(r) // stale--not manipulated by plugin transformers
// stale--not manipulated by plugin transformers
removeIDAnnotation(r)
// Add to the new map, checking for duplicates
if err := newMap.Append(r); err != nil {