instrumenta / kubeval

Validate your Kubernetes configuration files, supports multiple Kubernetes versions
https://kubeval.com
Other
3.16k stars 229 forks source link

Error 404 on schema json file when validate #331

Open miguelcarloshonorio opened 2 years ago

miguelcarloshonorio commented 2 years ago

Kubeval is thowing an error on try to validate a yaml file ERR - delivery/deployment.yaml: Failed initializing schema https://kubernetesjsonschema.dev/master-standalone/podmonitor-monitoring-v1.json: Could not read schema from HTTP, response status is 404 Not Found

bilbof commented 2 years ago

PodMonitor is a CRD installed with the Prometheus operator. Kubeval doesn't support CRDs. You could use --ignore-missing-schemas which will skip PodMonitor resources.