kubeval
kubeval copied to clipboard
Error raised with closed stdin.
When stdin is closed an error is raised even if stdin reading is not used.
$ kubeval example.yaml </dev/null
PASS - example.yaml contains an empty YAML document
$ kubeval example.yaml <&-
ERR - stat /dev/stdin: bad file descriptor
This can be triggered for variety of reasons, for example if using entr -r to automatically reload the command.
@kevincox Are there any permission issues with the file? Basically the error is saying that the file either does not exist or cannot be accessed (hence the error). More data is needed to know about the error. This type of error is too generic.
No, the file was unchanged between the two examples.
No, the file was unchanged between the two examples.
@kevincox If possible, test it out. Enter the command below:
stat example.yaml
And return the output here?
I'm not using kubeval
so I can't reproduce. If the original command now works the problem was likely fixed.
@garethr Can you close the issue please