Skip to content

crossplane-diff fails with too large composites relying on function-go-templating #368

Description

@fernandezcuesta

What happened?

When trying to do a crossplane-diff comp of a composite resource bundling hundreds of resources, the following error prompts:

  ✗ XPagerDutyService/foo-kgwt8 (cluster-scoped)
    Error: unable to process resource lansweeper.com/v1alpha1/XPagerDutyService//foo-kgwt8: cannot render resources with requirements: cannot render resources: cannot render: crossplane internal render in Docker returned error with output: crossplane: error: cannot render composite resource: reconcile failed: cannot compose resources: cannot run Composition pipeline step "populate-contexts": rpc error: code = ResourceExhausted desc = grpc: received message larger than max (4517460 vs. 4194304)

How can we reproduce it?

Have a large composite using function-go-templating. Today there's no way to set the max recv message size for that function.

What environment did it happen in?

Crossplane version: v2.3.3
Crossplane-diff: v0.8.0
function-go-templating: v0.12.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions