crossplane icon indicating copy to clipboard operation
crossplane copied to clipboard

CLI: Ability to generate XR/XRD CRDs locally

Open Chewie opened this issue 11 months ago • 4 comments

What problem are you facing?

I initially raised an issue for the closed source up cli, but I think the crossplane cli itself is a better candidate for this feature request, so I'm taking the liberty of raising it here:

While crossplane tooling itself never needs the XR/XRC CRDs on-disk, plenty of tools in the wider k8s ecosystem need to parse those CRDs for some sort of generation (bindings, documentation, web ui forms...), and don't accept XRDs.

Currently, the only way to get those CRDs is to actually feed the XRD to a running cluster and query them back.

How could Crossplane help solve your problem?

A command like crossplane crds generate <definition.yaml> could write out the two CRDs on-disk from an single yaml/whole folder input, facilitating the process of then feeding those CRDs to something else e.g during CI.

Cheers!

Chewie avatar Jan 10 '25 11:01 Chewie

Crossplane does not currently have enough maintainers to address every issue and pull request. This issue has been automatically marked as stale because it has had no activity in the last 90 days. It will be closed in 14 days if no further activity occurs. Leaving a comment starting with /fresh will mark this issue as not stale.

github-actions[bot] avatar Apr 11 '25 01:04 github-actions[bot]

/fresh

fernandezcuesta avatar Nov 14 '25 15:11 fernandezcuesta

There seems to be interest in this issue and perhaps it's something that #sig-cli would want to tackle in the coming months - I'll re-open 😉

jbw976 avatar Nov 14 '25 16:11 jbw976

I guess this should be covered by https://github.com/crossplane/crossplane/issues/6840

fernandezcuesta avatar Nov 17 '25 06:11 fernandezcuesta