Skip to content

B-Souty/kubernetes-json-schema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

kubernetes-json-schema

A repo to host custom resource definitions to be use with kubeval. Fixes this issue.

  1. Obtain the YAML for the CRD you want to validate
  2. Run js-yaml
js-yaml helmrelease-crd.yaml > helmrelease-crd.json
  1. 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
  1. Upload the resulting schema on github

  2. Validate CRDs:

kubeval --additional-schema-locations https://raw.githubusercontent.com/ams0/kubernetes-json-schema/master -d .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published