Skip to content

allow setting grpc message sizes#1

Draft
P0t4T0o wants to merge 4 commits into
mainfrom
support-grpc-msg-length-options
Draft

allow setting grpc message sizes#1
P0t4T0o wants to merge 4 commits into
mainfrom
support-grpc-msg-length-options

Conversation

@P0t4T0o

@P0t4T0o P0t4T0o commented Nov 20, 2025

Copy link
Copy Markdown
Owner

Description of your changes

Fixes #

I have:

  • Read and followed Crossplane's contribution process.
  • [ ] Added or updated unit tests for my change.

Tested with crank render:

apiVersion: apiextensions.crossplane.io/v1
kind: Composition
metadata:
  name: xtests.test.io
spec:
  compositeTypeRef:
    apiVersion: test.io/v1alpha1
    kind: XTest
  mode: Pipeline
  pipeline:
  - step: compose-a-resource-with-python
    functionRef:
      name: function-python
    input:
      apiVersion: python.fn.crossplane.io/v1beta1
      kind: Script
      script: |
        from crossplane.function.proto.v1 import run_function_pb2 as fnv1
        from crossplane.function import resource

        def compose(req: fnv1.RunFunctionRequest, rsp: fnv1.RunFunctionResponse):

          resource.update(
            rsp.desired.resources["test"],
            {"test": "test", "msg": "x"*1024*1024*3}
          )

python main.py --debug --insecure --max-recv-message-size 3 --max-send-message-size 3
python main.py --debug --insecure --max-recv-message-size 4 --max-send-message-size 4

Signed-off-by: Matej Ohradzansky <matohradzansky@gmail.com>
Signed-off-by: Matej Ohradzansky <matohradzansky@gmail.com>
Signed-off-by: Matej Ohradzansky <matohradzansky@gmail.com>
@P0t4T0o P0t4T0o force-pushed the support-grpc-msg-length-options branch from 0a43bbe to cbf8872 Compare November 26, 2025 06:56
 - function sdk 0.10.0
 - grpcio 1.76.0

Signed-off-by: Matej Ohradzansky <matohradzansky@gmail.com>
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.

1 participant