Skip to content

Conversation

tenitski
Copy link

@tenitski tenitski commented Jul 23, 2025

Description of your changes

Exposes .Desired.Composite.Ready field added in crossplane/crossplane#6021 in function response.

I have:

  • Read and followed Crossplane's [contribution process].
  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Tested with my own build of crossplane-contrib/function-go-templating#446 that implements crossplane-contrib/function-go-templating#153

@tenitski tenitski force-pushed the tenitski/composite-ready branch from 06d1266 to 634ed8a Compare July 23, 2025 01:29
@@ -39,6 +39,8 @@ type ConnectionDetails map[string][]byte
type Composite struct {
Resource *composite.Unstructured
ConnectionDetails ConnectionDetails

Ready Ready
Copy link
Author

@tenitski tenitski Jul 23, 2025

Choose a reason for hiding this comment

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

Empty line here for consistency with DesiredComposed below

r.Ready = v1.Ready_READY_FALSE
case resource.ReadyTrue:
r.Ready = v1.Ready_READY_TRUE
}
Copy link
Author

@tenitski tenitski Jul 23, 2025

Choose a reason for hiding this comment

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

A bit of code duplication introduced with a switch (see SetDesiredComposedResources below).
It is minimal, moving it to a separate function does not really make the code tidier...

@tenitski
Copy link
Author

tenitski commented Aug 5, 2025

@negz @jbw976 👋

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.

1 participant