Skip to content

Conversation

@negz
Copy link
Member

@negz negz commented Jul 11, 2025

Description of your changes

See corresponding upstream PR: crossplane/crossplane#6594

I cherry-picked #211 into this PR to bump its Go dependency - please review that one first. 😄

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

@negz negz force-pushed the operational branch 2 times, most recently from 67cc65c to f5bf937 Compare July 11, 2025 05:26
@negz negz force-pushed the operational branch 2 times, most recently from 8b723bd to ad1c2fd Compare July 12, 2025 06:37
@negz negz marked this pull request as ready for review July 12, 2025 06:39
negz added 2 commits July 14, 2025 16:35
This is still WIP at the client end in
crossplane/crossplane#6594.

Signed-off-by: Nic Cope <nicc@rk0n.org>
Signed-off-by: Nic Cope <nicc@rk0n.org>
syntax = "proto3";

//buf:lint:ignore PACKAGE_DIRECTORY_MATCH // Too late to fix this now.
// This package defines the RPC for both composition and operation functions.
Copy link
Member

Choose a reason for hiding this comment

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

refresh my memory - is the protobuf stuff just copied over from c/c repo?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah it is.

"github.com/crossplane/function-sdk-go/resource"
)

func TestSetDesiredResources(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

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

worth adding a test for SetDesiredComposedResources while we're in here?

Copy link
Member Author

Choose a reason for hiding this comment

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

We should but given time crunch I'm gonna leave it absent. 😬

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.

Seems reasonable here too - i like how much the operations functions are similar to composition functions, reducing a lot of additional new complexity 🤓

@negz negz merged commit 725c26e into crossplane:main Jul 14, 2025
9 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.

2 participants