Closed Skaronator closed 7 months ago
Now I feel stupid. I tried everything and double-checked everything but yeah... That error is from docker not from kubeconform.
Edit: the -i
needs to be removed.
$ echo "" | docker run -t ghcr.io/yannh/kubeconform:latest
2023/12/20 13:04:21 failing to read data from stdin
Works!
I'm trying to pipe my YAML manifest to the kubeconform container, but I'm unable to do so.
Here is a minimal reproduction:
kubeconform expects an TTY, but it seems like that is not possible when piping in data to a docker run command. I don't think the TTY should be necessary in that case anyway.
The use case for me is that I use my devops-toolbox that contains all handy tools for me within that container. My command looks like this:
Where kubectl and kubeconform are both just docker commands: