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

Error Reports can be much more specific #56

Open
FarzanRNobakht opened this issue Feb 22, 2018 · 7 comments
Open

Error Reports can be much more specific #56

FarzanRNobakht opened this issue Feb 22, 2018 · 7 comments

Comments

@FarzanRNobakht
Copy link

I have a yaml file containing configurations for multiple Kubernetes resources

when i run kubeval

I get a one line report!:

* Missing a kind key

and it does not specify where in file the error has occured

@garethr
Copy link
Collaborator

garethr commented Feb 24, 2018

Good idea. I'll look into whether the YAML parser exposes this information, or I need to do something when handling errors of that type.

@wkhere
Copy link

wkhere commented May 23, 2018

Yep,

adding a line number would be an obvious helpful addition to the error reporting

@orrc
Copy link

orrc commented Jan 24, 2019

Similarly, indicating which file failed would be useful. e.g. this runs against 16 files, but aborts if a single file fails, without mentioning which one:

$ kubeval -v 1.11.4 --strict **/*.yml
1 error occurred:

* Missing a kind key

And yes, line number would definitely be useful, e.g. a situation I just had: 😄

$ kubeval -v 1.11.4 --strict **/*.yml
…
The document dev/foo_deployment.yml contains an invalid Deployment
---> name: Additional property name is not allowed

$ grep name: dev/foo_deployment.yml | wc -l
      23

@sgalsaleh
Copy link

Any updates on this?

@ghost
Copy link

ghost commented Apr 17, 2020

Any updates?

@uberspot
Copy link

+1 for a --verbose flag.

@tielur
Copy link

tielur commented May 6, 2022

+1 this would be super helpful RIGHT now 😆

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

7 participants