-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stuck reading from stdin when using --directories #184
Comments
I have the exact same problem. Thank you @Pharb for the workaround! |
Same here, thank you @Pharb |
same here don't get why this is like this. a) from command line in the ci container:
produce
In non interactive run in the ci (using same container)
produce
I could just guess that there is some relation with the terminal not being a tty but it should not rely on that i think. And more suprisingly the following is working in my CI :
|
The check to use stdin was incorrectly true when running with no tty and no files were passed as arguments, even though directories were passed with -d Fixes instrumenta#184
Thanks for this issue and workaround. Thanks in advance for the fix - I see there is already a PR in progress. |
kubeval --directories=/tmp/kubeval-input
does not work properly for me when running it in my CI pipeline.It seems to be stuck reading from stdin, even though I only want it to read from
--directories
.My current workaround is to run it like this to switch to the "not-stdin" branch of the code:
kubeval --directories=/tmp/kubeval-input /dev/null
I guess there might be something wrong here: https://github.com/instrumenta/kubeval/blob/0.14.0/main.go#L68
Here are all the options I'm using:
Thanks for this nice tool 🎉
The text was updated successfully, but these errors were encountered: