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

Elasticsearch Cloud Kubernetes - ECK - missing schemas #24

Open arthurzenika opened 4 years ago

arthurzenika commented 4 years ago

Using kubeval to validate example deployments from https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-quickstart.html I get :

ERR  - elasticsearch/cluster.yaml: Failed initializing schema https://kubernetesjsonschema.dev/master-standalone/elasticsearch-elasticsearch-v1.json: Could not read schema from HTTP, response status is 404 Not Found
ERR  - elasticsearch/kibana.yaml: Failed initializing schema https://kubernetesjsonschema.dev/master-standalone/kibana-kibana-v1.json: Could not read schema from HTTP, response status is 404 Not Found

I'm a bit new to this but would be happy to contribute the schemas for theses things (if they are public)

jmorcar commented 2 years ago

This problem is documented in https://kubeval.instrumenta.dev/#crds , where you could ignore custom crds schemas, but I don't consider a solution. Or an alternative is create a custom schema (issue mentioned in https://github.com/instrumenta/kubernetes-json-schema/issues/26 ) or it maybe is to find the schema in a public github repo (issue https://github.com/instrumenta/kubeval/issues/301)

Elasticsearch ECK should have a public schema of this ... so you can use kubeval with the appropiate --flag to indicate this json schema to fix the root cause.