Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Destygo/kubernetes-json-schema

 
 

Repository files navigation

kubernetes-json-schema

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

  1. Obtain the link to the YAML for the CRD you want to validate and add it to build.sh

  2. Run build.sh

  3. Upload the resulting schema on github, in a repository that container the master-standalone folder at the root (you can use a branch different from master, just amend the --additional-schema-locations flag below).

  4. Validate CRDs:

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

Requirements

You need to install yq v3.4.1 and sponge to run the script build.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%