Allow rendering by label for replacement transformer

Change-Id: Ie2d68d735cb2b95987f5c95cbc024d608696f028
This commit is contained in:
Kostiantyn Kalynovskyi 2021-06-14 23:30:21 +00:00 committed by Kostyantyn Kalynovskyi
parent c696c71dbf
commit df55f50cb6

View File

@ -142,6 +142,7 @@ func replace(items []*yaml.RNode, target *airshipv1.ReplTarget, value *yaml.RNod
ByGVK(target.ObjRef.Group, target.ObjRef.Version, target.ObjRef.Kind).
ByName(target.ObjRef.Name).
ByNamespace(target.ObjRef.Namespace).
ByLabel(target.ObjRef.LabelSelector).
Filter(items)
if err != nil {
return err