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

Add --reject-kinds flag #228

Merged
merged 1 commit into from
Apr 14, 2020
Merged

Conversation

bndw
Copy link
Contributor

@bndw bndw commented Apr 4, 2020

Adds the ability to specify a comma-delimited list of prohibited Kubernetes resource Kinds.

kubeval --exit-on-error --reject-kinds "Secret" -d ./workloads/example
PASS - workloads/example/deployment.yaml contains a valid Deployment
PASS - workloads/example/env.yaml contains a valid ConfigMap
ERR  - Prohibited resourse kind 'Secret' in workloads/example/secret.yaml

Fixes #225

@garethr
Copy link
Collaborator

garethr commented Apr 14, 2020

Thanks, much appreciated.

@garethr garethr merged commit 5e896b9 into instrumenta:master Apr 14, 2020
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.

Specify kinds to reject
2 participants