Skip to content

Conversation

@bobh66
Copy link
Collaborator

@bobh66 bobh66 commented Oct 21, 2025

Description of your changes

Update to function-sdk-go 0.5.0 which includes crossplane-runtime v2

I have:

@bobh66 bobh66 force-pushed the update_v2 branch 5 times, most recently from 48602bc to 8c2e1a4 Compare October 21, 2025 15:41
Signed-off-by: Bob Haddleton <[email protected]>
Copy link
Member

@jbw976 jbw976 left a comment

Choose a reason for hiding this comment

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

Looks reasonable to me @bobh66, thanks for the follow up here!

@bobh66 bobh66 marked this pull request as draft October 21, 2025 16:39

// Initialize the requirements.
requirements := &fnv1.Requirements{ExtraResources: make(map[string]*fnv1.ResourceSelector)}
requirements := &fnv1.Requirements{Resources: make(map[string]*fnv1.ResourceSelector)}

Choose a reason for hiding this comment

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

Switching from ExtraResources to Resources will break things
See crossplane/function-sdk-go#219

Copy link

@tenitski tenitski Oct 21, 2025

Choose a reason for hiding this comment

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

My PR #496 was breaking my Crossplane environment until I undid the related change ec3ecd1

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep, that's why I put it back in Draft. We need to maintain the existing API to the user, which means adding the "extraResources" key into the template context with the same content as "requiredResources". Not ideal, but here we are.

Copy link
Member

Choose a reason for hiding this comment

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

Good catch @tenitski, thanks for the reminder here! 😥

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