Skip to content

Conversation

@brendanjryan
Copy link
Contributor

Adds a --quiet flag for suppressing "non terminal" i.e. error or result messages from the kubeval logs.

This will help users who are running kubeval in CI or other automated systems capture only the results they care about.

Examples:

Normal output

⇒  ./bin/kubeval -o json --ignore-missing-schemas fixtures/valid.yaml        
Warning: Set to ignore missing schemas
[
        {
                "filename": "fixtures/valid.yaml",
                "kind": "ReplicationController",
                "status": "valid",
                "errors": []
        }
]

Flag enabled

⇒  ./bin/kubeval -o json --ignore-missing-schemas --quiet fixtures/valid.yaml
[
        {
                "filename": "fixtures/valid.yaml",
                "kind": "ReplicationController",
                "status": "valid",
                "errors": []
        }
]

@brendanjryan
Copy link
Contributor Author

cc @garethr

@garethr garethr merged commit e6dfd15 into instrumenta:master Aug 31, 2019
@garethr
Copy link
Collaborator

garethr commented Aug 31, 2019

Thanks, catching up after some holiday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants