Open gmacario opened 2 years ago
According docs https://www.kubeval.com/#helm.
If you do helm template
for generating RAW YAML manifests, then this output contains comments with path for these templates e.g. # Source: my-chart/templates/frontend.yaml
. This output can be sent to kubeval
which will validate every YAML manifest according the path in the comment.
Something like this could work
$ helm template my-chart ./my-chart | kubeval
PASS - my-chart/templates/frontend.yaml contains a valid Deployment (default.frontend)
Hello and apologies in advance if this is a newbie question.
I have been experiencing troubles in having kubeval validate even simple Helm charts - see https://github.com/aquariophilie/node-koa-boilerplate/pull/9 as an example.
I managed to reproduce the problem with one of the easiest test I could think about
Here is the result:
You can find more details at https://github.com/aquariophilie/node-koa-boilerplate/issues/7 and https://github.com/aquariophilie/node-koa-boilerplate/pull/10
Thanks for your attention -- Gianpaolo