garethr / kubernetes-json-schema

A set of JSON schemas for various Kubernetes versions, extracted from the OpenAPI definitions
Other
253 stars 61 forks source link

kubeconfig as a schema #11

Open finchd opened 6 years ago

finchd commented 6 years ago

I was looking for a kubeconfig validator when I rediscovered the kubeval tool. Kubeval tries to download schema from GitHub matching the apiVersion and kind from this repo, so running kubeval ~/.kube/config results in:

$ kubeval ~/.kube/config
1 error occurred:
        * Problem loading schema from the network at https://raw.githubusercontent.com/garethr/kubernetes-json-schema/master/master-standalone/config.json: Could not
 read schema from HTTP, response status is 404 Not Found

Since it probably isn't in the OpenAPI definitions, are you willing to add "kind: Config" as a type, at least to master-standalone?