Allow rendering by label for replacement transformer
Change-Id: Ie2d68d735cb2b95987f5c95cbc024d608696f028
This commit is contained in:
parent
c696c71dbf
commit
df55f50cb6
@ -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).
|
ByGVK(target.ObjRef.Group, target.ObjRef.Version, target.ObjRef.Kind).
|
||||||
ByName(target.ObjRef.Name).
|
ByName(target.ObjRef.Name).
|
||||||
ByNamespace(target.ObjRef.Namespace).
|
ByNamespace(target.ObjRef.Namespace).
|
||||||
|
ByLabel(target.ObjRef.LabelSelector).
|
||||||
Filter(items)
|
Filter(items)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user