Skip to content

Add getComposedConnectionDetails template function#566

Merged
bobh66 merged 4 commits intocrossplane-contrib:mainfrom
jtucci:add-get-composed-connection-details
Apr 13, 2026
Merged

Add getComposedConnectionDetails template function#566
bobh66 merged 4 commits intocrossplane-contrib:mainfrom
jtucci:add-get-composed-connection-details

Conversation

@jtucci
Copy link
Copy Markdown
Contributor

@jtucci jtucci commented Apr 9, 2026

Description of your changes

Adds a new getComposedConnectionDetails(req, name) helper that returns the connectionDetails map for a named composed resource, parallel to the existing getComposedResource helper. Avoids having to drill into observed.resources manually in templates.

Also adds an example showing the function used to aggregate IAM AccessKey connection details into a Secret, and adds an entry to the README functions table.

Note: Connection details in observed state cannot currently be mocked with crossplane render. See crossplane/crossplane#4808 for related upstream work.

I have:

Adds a new getComposedConnectionDetails(req, name) helper that returns
the connectionDetails map for a named composed resource, parallel to the
existing getComposedResource helper. Avoids having to drill into
observed.resources manually in templates.

Signed-off-by: Jon Tucci <jonathan.tucci@sap.com>
Signed-off-by: Jon Tucci <jonathan.tucci@sap.com>
Signed-off-by: Jon Tucci <jonathan.tucci@sap.com>
Signed-off-by: Jon Tucci <jonathan.tucci@sap.com>
Copy link
Copy Markdown
Collaborator

@bobh66 bobh66 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - thanks!

@bobh66 bobh66 merged commit 162e605 into crossplane-contrib:main Apr 13, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants