crossplane / crossplane/cli

crossplane resource validate: Add schema/definition dynamic location lookup

Open
#196 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
19
Forks
31
Avg merge
3d 4h
Merged PRs (30d)
52

Description

### What problem are you facing?

If non crossplane composite resources are part of an composition, the CRD of the manifest has to copied locally in order to that `crossplane resource validate` works.

### How could Crossplane help solve your problem?

The issue is resolved at kubeconform: The supports fetching the remote schema dynamically: `kubeconform -schema-location default -schema-location 'https://raw.githubusercontent.com/CustomResourceDefinition/catalog/main/schema/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.jso n'`

If only definitions instead schema will be supported, it wont be a issue, since the linked repository additionally contains definitions, e.g.: https://raw.githubusercontent.com/CustomResourceDefinition/catalog/refs/heads/main/definitions/argoproj.io/appproject.yaml

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.