-
Notifications
You must be signed in to change notification settings - Fork 27
Support operation functions #212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
67cc65c to
f5bf937
Compare
8b723bd to
ad1c2fd
Compare
This is still WIP at the client end in crossplane/crossplane#6594. 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. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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. 😬
jbw976
left a comment
There was a problem hiding this 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 🤓
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:
make reviewableto ensure this PR is ready for review.How has this code been tested