kubeval icon indicating copy to clipboard operation
kubeval copied to clipboard

Reading from stdin interrupts at a comment symbol (#)

Open Jeiwan opened this issue 6 years ago • 0 comments

Hi,

I have a YAML file containing multiple K8s resources. One of the resources contains data attribute with a config from a monitoring service. The config has multiple lines commented out with # symbol. Running:

cat production.yaml | docker run --rm -i garethr/kubeval -

Validates only first few resources right until the one containing the config. It finishes successfully with error code 0.

Running:

docker run --rm -v `pwd`:/configs -i garethr/kubeval /configs/production.yaml

Correctly validates all the resources.


docker run --rm -i garethr/kubeval --version
Version: dev
Commit: none
Date: unknown

Jeiwan avatar Oct 21 '19 05:10 Jeiwan