instrumenta / kubeval-action

A GitHub Action for using Kubeval
Other
31 stars 18 forks source link

Running with defaults results in error on the CI config itself #4

Open MikaelElkiaer opened 4 years ago

MikaelElkiaer commented 4 years ago

Using the example configuration, using all defaults, yields the following error:

ERR - .github/workflows/ci.yml: Missing 'metadata' key

as kubeval attempts to validate the workflow itself.

MikaelElkiaer commented 4 years ago

This could be fixed by #3

MikaelElkiaer commented 4 years ago

As a bonus, it seems like kubeval returns exit code 1 if there are warnings - such as schemas missing for CRDs. This exit code is interpreted as error and therefore the step fails.

Edit: This works now, for some reason that I cannot figure out.