Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds a quiet flag #176

Merged
merged 1 commit into from
Aug 31, 2019
Merged

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