instrumenta / kubeval

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

[BUG] ConfigMap Validation should be ERROR but is WARN #345

Open rufreakde opened 2 years ago

rufreakde commented 2 years ago

So when we have a configmap that does not allow number types only string and validate it we get:

WARN - /templates/configmap-general.yaml contains an invalid ConfigMap (default.general) - data: Invalid type. Expected: [string,null], given: integer

Why is this not an error?

schifferle commented 2 years ago

i just lost 4 hours because there was no error in the log. Please change this in the next release.

rufreakde commented 2 years ago

Will this be acknowledged as a bug by repository owners?

Invalid type.

Is not valid check result as only a warning IMHO

rufreakde commented 2 years ago

Also is this maybe related to? https://github.com/xeipuuv/gojsonschema/issues/345