kubernetes-json-schema icon indicating copy to clipboard operation
kubernetes-json-schema copied to clipboard

kubeconfig as a schema

Open finchd opened this issue 6 years ago • 0 comments

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?

finchd avatar Sep 11 '18 04:09 finchd