Attempting to use this function in crossplane v2 results in:
selected CompositionRevision
<REDACTED> does not have a valid
function pipeline: function "function-cidr" (active revision
"function-cidr-ef7de3493998") is missing required capabilities:
composition
Can we please bring this function up to date so it can be used with the latest versions of crossplane?
It looks like there is already a PR up which would bring the function-go-sdk up to date
#40
I believe what needs to happen is:
-
go.mod: Bump github.com/crossplane/function-sdk-go to v0.6.0
-
fn.go: Change the embedded struct from fnv1beta1.UnimplementedFunctionRunnerServiceServer to v1.UnimplementedFunctionRunnerServiceServer, and update the RunFunction signature to use v1 proto types instead of v1beta1
-
main.go: The Serve() function now takes v1.FunctionRunnerServiceServer and automatically wraps it for v1beta1 backward compatibility, so I think we need to update this as well.
Attempting to use this function in crossplane v2 results in:
Can we please bring this function up to date so it can be used with the latest versions of crossplane?
It looks like there is already a PR up which would bring the function-go-sdk up to date
#40
I believe what needs to happen is:
go.mod: Bump github.com/crossplane/function-sdk-go to v0.6.0
fn.go: Change the embedded struct from fnv1beta1.UnimplementedFunctionRunnerServiceServer to v1.UnimplementedFunctionRunnerServiceServer, and update the RunFunction signature to use v1 proto types instead of v1beta1
main.go: The Serve() function now takes
v1.FunctionRunnerServiceServerand automatically wraps it for v1beta1 backward compatibility, so I think we need to update this as well.