-
Notifications
You must be signed in to change notification settings - Fork 218
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
Validation Errors not properly printed in v3.0.0-beta.2 #209
Comments
EDIT: Redacted because it was a red herring. |
also if it helps, here's my schema:
|
Started debugging this today. Just to make sure, I installed yamale and made sure that it would validate against my schema.
So I have definitely narrowed it down to the helm lint step:
But if I run that myself:
|
Okay, so I figured out the cause of the initial error. It was far harder than it should have been since the error never got caught correctly. I had to go add a bunch of print statements to find it. My schema requires maintainers, and the I have edited the title and updated my initial report |
Here is the full debug output of the command in question when it fails to provide the error message. |
Looking at you initial log above, it did print the error:
|
Yes, however it did not print it at the end (which I believe it used to do), and it printed a usage message which is very misleading. |
Is this a request for help?: No
Is this a BUG REPORT or FEATURE REQUEST? (choose one): Bug Report
Version of Helm and Kubernetes:
Helm v3.1.1
Kubernetes - Not in Kube
Chart-testing v3.0.0-beta.2
What happened:
After successfully linting one chart, the other fails and provides only a usage message. The second chart was missing a required maintainers block. This error was not shown to the user.
What you expected to happen:
Either a success or a failure and some useful output if there is a failure.
How to reproduce it (as minimally and precisely as possible):
ct lint --config scripts/ct.yaml --chart-yaml-schema scripts/schema.yaml
If you want my exact setup, you can see this build: https://app.circleci.com/jobs/github/FairwindsOps/charts/3866
Anything else we need to know:
The text was updated successfully, but these errors were encountered: