kubeval icon indicating copy to clipboard operation
kubeval copied to clipboard

Docker image doesn't support glob syntax

Open jzelinskie opened this issue 5 years ago • 2 comments

Description

The docker image for kubeval doesn't expand glob syntax making it impossible to properly scan complex directory structures that have been mounted into the container.

Expected Outcome

$ docker run -it -v $PWD/environments:/environments garethr/kubeval "/environments/**/*.yaml"
The document /environments/test1/config.configmap.yaml contains a valid ConfigMap
The document /environments/test2/config.configmap.yaml contains a valid ConfigMap

Actual Outcome

$ docker run -it -v $PWD/environments:/environments garethr/kubeval "/environments/**/*.yaml"
Could not open file /environments/**/*.yaml

Environment

garethr/kubeval@sha256:6693cb13212d8bee7fd028e7f074be569c59d369d77e58fbaef231e46342aa6c

jzelinskie avatar Sep 27 '18 22:09 jzelinskie

@jzelinskie btw would it work if you override ENTRYPOINT and CMD to use something like bash -c "kubeval <args>" instead?

php-coder avatar Mar 07 '19 11:03 php-coder

At the moment I am not using kubeval as the dockerized version does not support globbing. From what I can tell #101 seems to have stalled. Is there a way to move this forward? I am happy and willing to help if there is a need.

jorge0136 avatar Jun 07 '19 20:06 jorge0136