I want to use this tool together with Helm to render kubernetes resource templates and validate them. Helm does output a yaml stream seperated by --- onto stdout. The cmd version of kubeyaml seems to only scan the first yaml structure encountered. To use this tool effectively it should continue until hitting the EOF and validate each section. F.e.
This is a valid yaml stream. The second section does produce the expected error on the wrong indentation (unknown key) when scanned individually, this is however ignored when read because the first section is valid.
I want to use this tool together with
Helm
to render kubernetes resource templates and validate them. Helm does output a yaml stream seperated by---
onto stdout. The cmd version of kubeyaml seems to only scan the first yaml structure encountered. To use this tool effectively it should continue until hitting the EOF and validate each section. F.e.This is a valid yaml stream. The second section does produce the expected error on the wrong indentation (unknown key) when scanned individually, this is however ignored when read because the first section is valid.