kubeval icon indicating copy to clipboard operation
kubeval copied to clipboard

[BUG] ConfigMap Validation should be ERROR but is WARN

Open rufreakde opened this issue 2 years ago • 3 comments

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?

rufreakde avatar Jun 14 '22 14:06 rufreakde

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

schifferle avatar Jul 20 '22 14:07 schifferle

Will this be acknowledged as a bug by repository owners?

Invalid type.

Is not valid check result as only a warning IMHO

rufreakde avatar Jul 21 '22 11:07 rufreakde

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

rufreakde avatar Jul 21 '22 11:07 rufreakde