You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried to do validation against K8s 1.19, which as per my other issue, isn't in the default schema repo. Instead of throwing an error, this seemed to just silently fail and skip validation of all resources.
Expected result:
Some sort of error because the 1.19 schemas don't exist.
Presumably this is because I'm passing -ignore-missing-schemas? However if I don't pass -ignore-missing-schemas, I just get Summary: 964 resources found in 450 files - Valid: 0, Invalid: 0, Errors: 964, Skipped: 0.
The text was updated successfully, but these errors were encountered:
Hi @Niksko , this seems to work as expected? If you ignore missing schemas, it will skip resources for which it doesnt find a shema - in this case all of them. If you do not pass -ignore-missing-schemas, it will error when it doesnt find a schema for a resource - in this case for all of them...
I would recommend you use -skip to explicitly ignore the kinds for which you know you do not have a schema, so that you don't get these silent errors as when using -ignore-missing-schemas.
I will close this since it is working as expected - a Kubernetes version missing should trigger a "schema not found" - I can't get kubeconform to fail on it, since you might be specifying multiple schema locations... I hope you found a way to get this to work with -skip :)
Tried to do validation against K8s 1.19, which as per my other issue, isn't in the default schema repo. Instead of throwing an error, this seemed to just silently fail and skip validation of all resources.
Steps to reproduce:
Expected result:
Some sort of error because the 1.19 schemas don't exist.
Presumably this is because I'm passing
-ignore-missing-schemas
? However if I don't pass-ignore-missing-schemas
, I just getSummary: 964 resources found in 450 files - Valid: 0, Invalid: 0, Errors: 964, Skipped: 0
.The text was updated successfully, but these errors were encountered: