kubeval icon indicating copy to clipboard operation
kubeval copied to clipboard

Error raised with closed stdin.

Open kevincox opened this issue 4 years ago • 5 comments

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 avatar Mar 30 '20 13:03 kevincox

@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.

scovl avatar Feb 06 '23 21:02 scovl

No, the file was unchanged between the two examples.

kevincox avatar Feb 06 '23 21:02 kevincox

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?

scovl avatar Feb 06 '23 22:02 scovl

I'm not using kubeval so I can't reproduce. If the original command now works the problem was likely fixed.

kevincox avatar Feb 06 '23 22:02 kevincox

@garethr Can you close the issue please

scovl avatar Feb 06 '23 22:02 scovl