We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0173ab8 commit de71167Copy full SHA for de71167
pkg/templates/templates.go
@@ -1047,6 +1047,16 @@ func (t *TemplateResolver) GetUsedResources() []UsedResource {
1047
return t.usedResources
1048
}
1049
1050
+// returns a slice of the unstructured resources collected in usedResources
1051
+func (t *TemplateResolver) GetUsedUnstructs() []unstructured.Unstructured {
1052
+ objs := make([]unstructured.Unstructured, 0, len(t.usedResources))
1053
+ for _, used := range t.usedResources {
1054
+ objs = append(objs, used.Resource)
1055
+ }
1056
+
1057
+ return objs
1058
+}
1059
1060
// applyContextTransformers runs the configured ContextTransformers in order and
1061
// returns the final transformed context. This is only called when a
1062
// DynamicWatcher is configured.
0 commit comments