Closed eyarz closed 2 years ago
The --only-k8s-file
flag supports only YAML files because this check (k8s file or not) is happening after the YAML validation step. Because I used this flag on a README file, it was not ignored.
We don't want to skip the YAML validation step so we will not fix this bug.
If someone wants to scan an entire dir with a mix of k8s and none k8s files, he should use the following workaround:
datree test path/to/dir/*.ya?ml --only-k8s-files
Describe the bug The
--only-k8s-files
flag should skip files that are NOT k8s to avoid false-positive results when scanning a dir with k8s and non-k8s filesTo Reproduce Steps to reproduce the behavior:
datree test README.md --only-k8s-files
Expected behavior because README.md is not a k8s file, the CLI should skip it.
Screenshots
Desktop (please complete the following information):
Datree version (run
datree version
):