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

Home Page:https://datree.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The `--only-k8s-files` flag should ignore empty files

hadar-co opened this issue · comments

Is your feature request related to a problem? Please describe.
When running datree test --only-k8s-files on an empty file, the CLI fails in the schema-validation step.

Describe the solution you'd like
The CLI should ignore empty files when this flag is passed, as they are not valid k8s files.

I would like to work on this issue :)

@alonzyl Awesome, thanks 🤟