kubeval icon indicating copy to clipboard operation
kubeval copied to clipboard

False Validation on ConfigMap and Secret when name contains _

Open joshiraez opened this issue 4 years ago • 1 comments

Hi,

What happens: If you try to validate a ConfigMap or Secret file which has a name with _ (db_env f.e.) it returns true. Later, if you try to apply it kubectl tells you that it's notr valid

What should happen: It should fail because it doesn't have a valid file name.

I liked this a lot so I'll try to take a look, but I'll leave the issue just in case

joshiraez avatar Feb 12 '20 16:02 joshiraez

This issue happens with deployments also

joshiraez avatar Feb 12 '20 16:02 joshiraez