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

Change exit code if schema can't be located #126

Closed
WillPlatnick opened this issue May 3, 2019 · 2 comments
Closed

Change exit code if schema can't be located #126

WillPlatnick opened this issue May 3, 2019 · 2 comments

Comments

@WillPlatnick
Copy link

Hello,
I'd like to propose a change to the existing behavior:

We currently use kubeval to evaluate every manifest before it's deployed. The problem is we have plenty of custom CRD's that kubeval doesn't have schemas for.

Currently, the behavior is to exit with an error code of 1 if a manifest evaluates improperly or if it can't locate the proper schema. I'd like to propose adding a specific exit code to indicate that a schema couldn't be found to verify against. Once it has its own error, we can safely catch that in our CI process and not have it block deployments.

@garethr
Copy link
Collaborator

garethr commented May 27, 2019

Thanks, this is a good idea I think. It will definitely help some users. Also discussing not issuing an error code if you pass a flag in #127

@garethr
Copy link
Collaborator

garethr commented Jul 13, 2019

You can now skip missing schemas with the --skip-missing-schemas flag in 0.11.0 which should resolve your issue.

@garethr garethr closed this as completed Jul 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants