datreeio / datree

Prevent Kubernetes misconfigurations from reaching production (again 😤 )! From code to cloud, Datree provides an E2E policy enforcement solution to run automatic checks for rule violations. See our docs: https://hub.datree.io
https://datree.io
Apache License 2.0
6.39k stars 363 forks source link

Missing invalid schema version notification #305

Closed eyarz closed 2 years ago

eyarz commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Run command datree test k8s-demo.yaml -s=1.15
  2. See error: k8s schema validation error: could not find schema for X

Expected behavior the schema version that I passed (1.15 instead of 1.15.0) is invalid. therefore, I should get some kind of indication about that.

Screenshots image

Desktop (please complete the following information):

Datree version (run datree version):

Abhra303 commented 2 years ago

@eyarz will it work?

datree-invalid-schema-version

eyarz commented 2 years ago

LGTM! open a PR and someone for the maintainers team will review it :)

Abhra303 commented 2 years ago

okay :)