A repo to host custom resource definitions to be use with kubeval
. Fixes this issue.
-
Obtain the link to the YAML for the CRD you want to validate and add it to build.sh
-
Run build.sh
-
Upload the resulting schema on github, in a repository that container the
master-standalone
folder at the root (you can use a branch different frommaster
, just amend the--additional-schema-locations
flag below). -
Validate CRDs:
kubeval --additional-schema-locations https://raw.githubusercontent.com/Destygo/kubernetes-json-schema/master
You need to install yq v3.4.1
and sponge
to run the script build.sh