Skip to content

Conversation

@jbw976
Copy link
Member

@jbw976 jbw976 commented Oct 20, 2025

Description of your changes

This PR simply bumps this template repo to use the latest function-sdk-go v0.5.0: https://github.com/crossplane/function-sdk-go/releases/tag/v0.5.0

The basic commands from the README still work to generate code, run unit tests, test with crossplane render, and build a function package.

Nothing specifically for operation functions has been added in this PR, we are focusing on bumping the SDK dependency. We can add some operations examples in the future as desired.

Fixes #103

I have:

@jbw976
Copy link
Member Author

jbw976 commented Oct 20, 2025

Looks like build and lint are failing in the CI environment here, will look into this ASAP

edit: done, all checks are green now ✅

- .golangci.yml config file migrated with golangci-lint migrate

Signed-off-by: Jared Watts <[email protected]>
@@ -1,206 +1,144 @@
run:
Copy link
Member Author

Choose a reason for hiding this comment

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

this file was migrated with golangci-lint migrate, using the same version of v2.4.0 as is specified in ci.yml

Copy link
Member

Choose a reason for hiding this comment

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

I don't love that this command strips all the commentary from the file. What I've been doing is copying the one from c/c (which I migrated then re-added the commentary to) and updating the import paths.

Not a blocker though.

Copy link
Member Author

@jbw976 jbw976 Oct 22, 2025

Choose a reason for hiding this comment

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

that's a good suggestion, i didn't like how the comments were stripped either. i'll follow up on it and then merge this PR :)

Copy link
Contributor

@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

@@ -1,206 +1,144 @@
run:
Copy link
Member

Choose a reason for hiding this comment

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

I don't love that this command strips all the commentary from the file. What I've been doing is copying the one from c/c (which I migrated then re-added the commentary to) and updating the import paths.

Not a blocker though.

@jbw976 jbw976 merged commit 6b3f0ba into crossplane:main Oct 22, 2025
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.

Update with operation function support

3 participants