-
Hi Community, I've built a Crossplane Composition Function using KCL https://github.com/kcl-lang/crossplane-kcl and the composition function go template https://github.com/crossplane/function-template-go Related issue: kcl-lang/kcl#885 However, I've met a RPC error when debug the function. (My crossplane CLI version is v1.14.4). The steps are
# Run the function locally
go run . --insecure --debug
cd ./examples/resources/basic && crossplane beta render xr.yaml composition.yaml functions.yaml -r At last, I've got the error message crossplane: error: cannot render composite resource: cannot run pipeline step "normal": rpc error: code = Unavailable desc = error reading from server: EOF Can someone help me? |
Beta Was this translation helpful? Give feedback.
Answered by
Peefy
Dec 20, 2023
Replies: 1 comment
-
I see. I've forgot to add annotations for the local function. Thank you! apiVersion: pkg.crossplane.io/v1beta1
kind: Function
metadata:
name: kcl-function
annotations:
# This tells crossplane beta render to connect to the function locally.
render.crossplane.io/runtime: Development
spec:
package: kcllang/crossplane-kcl |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Peefy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I see. I've forgot to add annotations for the local function. Thank you!
apiVersion: pkg.crossplane.io/v1beta1 kind: Function metadata: name: kcl-function annotations: # This tells crossplane beta render to connect to the function locally. render.crossplane.io/runtime: Development spec: package: kcllang/crossplane-kcl