Document the Crossplane project file (and the new pre-built function and per-language schema options)
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 65/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Quiet
- Domain
- cli, documentation
Research direction
Start with the CLI command reference and the Configurations packaging docs, then account for the versioned CLI documentation restructuring in crossplane/docs#1104. Done means a project-file reference covers ProjectSpec, Directory and Tarball functions, and per-language schema generation, with examples and links to the affected workflows.
Written by the indexing model from the issue text.
Description
What's Missing?
The Crossplane CLI's project workflow (crossplane project init/build/run) is configured by a project file — a Project resource whose spec (ProjectSpec) controls the repository, dependencies, paths, target architectures, embedded functions, and schema generation. Today this file has no prose documentation. The only place any of it surfaces is the auto-generated CLI command reference, which documents command flags but not the project file's schema. The packaging docs (Configurations) only cover the older crossplane xpkg build + crossplane.yaml flow, not the newer Projects flow.
crossplane/cli#24 just merged and adds two new optional ProjectSpec fields that need documenting:
1. Pre-built function runtimes (spec.functions) — fixes crossplane/cli#21. An explicit list of functions to build, which disables the default per-subdirectory auto-discovery. Each entry uses a source discriminator (Directory or Tarball). Tarball sources skip language detection and load a pre-built single-platform OCI image tarball per target architecture (<pathPrefix>-<arch>.tar/.tar.gz), so projects can build functions with their own toolchain (make, Nix, Bazel, ko, docker save, etc.).
spec:
architectures: [amd64, arm64]
functions:
- source: Directory
directory:
name: function-a
- source: Tarball
tarball:
name: function-b
pathPrefix: build/function-b
2. Per-language schema generation (spec.schemas.languages) — fixes crossplane/cli#29. Restricts schema generation to a subset of the supported languages (Go, JSON, KCL, Python) instead of generating all four. Applies to both the project's own XRDs and its dependencies, and flows through project build/run and dependency update-cache/clean-cache.
spec:
schemas:
languages: [python]
Ideally these are documented as part of a broader project-file reference page rather than in isolation, since the project file itself is currently undocumented.
Note the CLI docs are mid-restructure (crossplane/docs#1104 moves them into their own versioned tree and gives them a separate sidebar/version menu), so placement should account for that.
- Dominant language
- SCSS
- Stars
- 60
- Forks
- 163
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from crossplane/docs
-
docs: fix 'allows to use' grammar in Composition compositeTypeRef notePossibly taken @mrchatam claimed this 22 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 95/100
crossplane/docs#1154 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
crossplane/docs#1153 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
crossplane/docs#1139 ·
-
[Web Bug] - Managed Resource Activation PoliciesPossibly taken @boxcee-interview claimed this 77 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
crossplane/docs#1126 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
crossplane/docs#1121 ·
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
[Misdetection] `text/tab-separated-values` file misdetected as `text/tsv`Possibly taken @bact claimed this today. Openmisdetection needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
JuliusBrussee/caveman#1189 ·
Maintainers usually reply within 1 day
-
omarchy-menu-keybindings lua bind scan spins at 100% CPU when user config iterates a mocked hl APIOpen
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
omacom/omarchy#14302 · 1 comment ·
Maintainers usually reply within 1 day