Skip to content

Stuck reading from stdin when using --directories #184

@Pharb

Description

@Pharb

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:

kubeval --strict --kubernetes-version=1.14.6 --skip-kinds=CustomResourceDefinition,Prometheus,PrometheusRule,ServiceMonitor,Alertmanager --schema-location=file:///opt/kubeval-schemas --directories=/tmp/kubeval-input

Thanks for this nice tool 🎉

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions