instrumenta / kubeval

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

Provide verbose output on errors #211

Closed ghost closed 4 years ago

ghost commented 4 years ago
$ kubeval -v 1.13.10 --ignore-missing-schemas 1.yaml
WARN - Set to ignore missing schemas
ERR  - 1.yaml: Missing 'kind' key

$ ll -h 1.yaml
-rw-r--r--  1 user  staff   485K  7 Feb 14:17 1.yaml

The file is 485K and all I have is Missing 'kind' key.

Would be nice to have -v option that shows at least the line number where that key is missing.

Linus-Boehm commented 4 years ago

See also instrumenta/kubeval#56

ghost commented 4 years ago

Dup of https://github.com/instrumenta/kubeval/issues/56