From df55f50cb646264439680445331d60eac3635089 Mon Sep 17 00:00:00 2001 From: Kostiantyn Kalynovskyi Date: Mon, 14 Jun 2021 23:30:21 +0000 Subject: [PATCH] Allow rendering by label for replacement transformer Change-Id: Ie2d68d735cb2b95987f5c95cbc024d608696f028 --- pkg/document/plugin/replacement/transformer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/document/plugin/replacement/transformer.go b/pkg/document/plugin/replacement/transformer.go index c404a19ac..e87430337 100644 --- a/pkg/document/plugin/replacement/transformer.go +++ b/pkg/document/plugin/replacement/transformer.go @@ -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