Skip to content

crossplane composition render will generate all schemas not honor project specific schemas.languages #242

Description

@haarchri

What happened?

crossplane composition render will generate schemas for all languages and not honor project specific configuration:

  schemas:
    languages: [go]

How can we reproduce it?

What environment did it happen in?

  • Crossplane CLI version: 2.4.1
  • Platform (e.g., linux/amd64):
  • Crossplane version (if applicable):

Activity

  1. Bham06 commented on Aug 10, 2026

    @Bham06
    Contributor

    I'd like to take this one.

    The cause looks like a missing filter at two call sites. crossplane composition render runs xr.Cmd, and its loadFunctions builds the schema generators with a bare generator.AllLanguages(...) — unlike project build, project run, dependency add, dependency update-cache, composition generate and function generate, which all wrap it in generator.Filter(..., proj.Spec.Schemas.GetLanguages()). That same value feeds both the dependency manager and the schema manager, so every language is generated regardless of spec.schemas.languages. crossplane operation render has the identical omission — happy to fix both in one PR.

    @haarchri — before I start, does this overlap with the schema-generator port you mentioned on #131?

  2. haarchri commented on Aug 10, 2026

    @haarchri
    MemberAuthor

    the fix in #131 is only for generating Go Schemas

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions