Skip to content

Conversation

@redacid
Copy link

@redacid redacid commented Feb 20, 2025

add env variable KUBECONFORM_SCHEMA_LOCATION with comma-separated list of values
for example:
KUBECONFORM_SCHEMA ?= https://raw.githubusercontent.com/redacid/kubernetes-json-schema/refs/heads/master/{{.NormalizedKubernetesVersion}}-standalone{{.StrictSuffix}}/{{.ResourceKind}}{{.KindSuffix}}.json
KUBECONFORM_SCHEMA_CRD ?= https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json
KUBECONFORM_SCHEMA_LOCATION ?= $(KUBECONFORM_SCHEMA),$(KUBECONFORM_SCHEMA_CRD)

This list append to --schema-location
with --verbose flag print list of all schema locations

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.

1 participant