Skip to content

refactor crossplane render and project building into reusable Go packages #503

Closed

Description

@nkzk

What problem are you facing?

Testing frameworks built around crossplane render (for example crossplane-contrib/xprin) cant run a test-case without each render-invocation doing the following:

  • resolving project function dependencies
  • initializing a schema manager
  • generating schemas
  • building the project and its embedded function
  • loading embedded functions
  • loading context function into composition pipeline

Even though all of this could be done at initialization.

This creates unnecessary overhead and prolongs test-duration.

How could Crossplane help solve your problem?

Refactor project preparation/build and composition rendering into reusable, public Go packages, so that consumers can run initialization at startup, and then call render without the overhead or even run render in parallell.

Activity

  1. added
    enhancement
    on Nov 5, 2026
  2. nkzk commented on Nov 5, 2026

    @nkzk
    ContributorAuthor

    Oh i see that there's already some work on this for render in main :O https://github.com/crossplane/cli/blob/main/pkg/render/render.go.

    Is there something planned for project build too? i couldnt find an issue on it

  3. nkzk commented on Nov 19, 2026

    @nkzk
    ContributorAuthor

    This looks exactly like what i'm looking for, awesome!! <3 #544

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions