Closed Checksumz closed 1 month ago
@Checksumz The problem is caused by the gotemplating.fn.crossplane.io/composition-resource-name:
annotation being set to the same value in both resources. The composition-resource-name
MUST be unique for each resource within the composite, otherwise duplicates get overwritten and only the last resource is rendered. You could set the gotemplating.fn.crossplane.io/composition-resource-name:
to a
for one resource and b
for the other and it should work just fine.
thanks so much @bobh66, I can't believe i missed that. Closing the issue now.
What happened?
When I try to use 2 complex/nested compositions with go-templating they do not render together.
If i comment one of them out the other successfully gets generated. In the below case when i don't comment any of the templates out only the step declared last is rendered (generated). When I converted my Project resource(nested composition) from go-templating to patch and transform function, it started rendering(generating managed resources)
How can we reproduce it?
Create a complex Composition made up of multiple compositions using go-templating format and it should generate only one of the nested/complex Compositions
What environment did it happen in?