instrumenta / kubernetes-json-schema

Schemas for every version of every object in every version of Kubernetes
https://kubernetesjsonschema.dev
Other
306 stars 134 forks source link

Missing kustomize.config.k8s.io/v1beta1 #9

Open poikilotherm opened 5 years ago

poikilotherm commented 5 years ago

Kubeval fails for any kustomization.yaml file as no schema is included for it. As https://kustomize.io v2.0 is merged into kubectl since 1.14., it would be superb to include the schema here.

(Yeah, I know this is a moving target as it changed with newer releases of Kustomize)

astroclark commented 4 years ago

fwiw, i came across http://json.schemastore.org/kustomization but --schema-location and --additional-schema-locations append an unwanted /master-standalone/kustomization-kustomize-v1beta1.json:

$  kubeval --additional-schema-locations http://json.schemastore.org/kustomization kustomization.yaml
ERR  - kustomization.yaml: Failed initalizing schema https://kubernetesjsonschema.dev/master-standalone/kustomization-kustomize-v1beta1.json: Could not read schema from HTTP, response status is 404 Not Found
Failed initalizing schema http://json.schemastore.org/kustomization/master-standalone/kustomization-kustomize-v1beta1.json: Could not read schema from HTTP, response status is 404 Not Found

It's unclear if i'm using that option correctly, however.