kubernetes-sigs/kubectl-validate

invalid manifest doesn't return non-zero exit code

eyarz opened this issue · 4 comments

eyarz commented

steps to reproduce:

  1. pass kubectl-validate an invalid manifest
  2. check kubectl-validate status code ($?)

expected:
non-zero exit code to indicate failure

actual:
the exit code is 0 (status has succeeded)

image

Hey there!

May I work on it? It seems very beginner friendly.

would be very good to get this merged, just putting this into our CI pipelines and having a 0 exit on error is just a little bit annoying. Very much appreciate the tool tho!

Any movement on this PR? Its making a pipeline somewhat awkward.

#63 fixes this issue and has merged