A repo to host custom resource definitions to be use with kubeval
. Fixes this issue.
- Obtain the YAML for the CRD you want to validate
- Run js-yaml
js-yaml helmrelease-crd.yaml > helmrelease-crd.json
- Run jsonnet on the file. You can find the expected filename from a failed run of
kubeval
:
jsonnet helmrelease-crd.json > helmrelease-helm-v1.json
-
Upload the resulting schema on github
-
Validate CRDs:
kubeval --additional-schema-locations https://raw.githubusercontent.com/ams0/kubernetes-json-schema/master -d .