Skip to content

feat: support pkg meta file in dependency commands - #393

Draft
fernandezcuesta wants to merge 2 commits into
crossplane:mainfrom
fernandezcuesta:feat/meta-file-dependency-commands
Draft

fernandezcuesta wants to merge 2 commits into
crossplane:mainfrom
fernandezcuesta:feat/meta-file-dependency-commands

Conversation

@fernandezcuesta

@fernandezcuesta fernandezcuesta commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Description of your changes

Add support to meta pkg file (crossplane.yaml) for dependency update-cache, clean-cache and add subcommands.

  • -f no longer defaults to crossplane-project.yaml only, it will look for crossplane.yaml if the former isn't found, fail if none exist.

  • Three new flags --k8s-version, --schemas-dir and --schema-languages, since crossplane.yaml is missing that information. For a project file, it will override spec.dependencies[].k8s.version, paths.schemas and spec.schemas.languages, respectively.

  • For the dependency add command, k8s, CRD, or API-only dependencies are not supported and will fail when trying to do so with a cfg pkg file (for those, migrate to a Project).

  • --k8s-version generates Kubernetes core API schemas, which dependsOn can't declare.

Fixes #391

I have:

Need help with this checklist? See the cheat sheet.

Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
@fernandezcuesta
fernandezcuesta force-pushed the feat/meta-file-dependency-commands branch from 4f03126 to ce1aa13 Compare September 29, 2026 10:02
// FromConfiguration converts Configuration package metadata into a Project
// whose dependencies are the metadata's package dependencies.
//
// TODO: review, we might want this now, or postpone to a separate PR:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm myself not sure about this; I can work a bit more on that, don't drop any information we've today, leave it for later or close the loop now and add support for some project subcommands.

Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com>
@fernandezcuesta fernandezcuesta changed the title feat: support pkg meta file in dependnecy commands feat: support pkg meta file in dependency commands Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make configuration meta file a 1st class citizen for dependency commands

1 participant