kubernetes-json-schema
kubernetes-json-schema copied to clipboard
kubeconfig as a schema
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?