kapitan icon indicating copy to clipboard operation
kapitan copied to clipboard

Add support for ytt for templating

Open cppforlife opened this issue 5 years ago • 4 comments

ytt (https://get-ytt.io; https://github.com/k14s/ytt) is a yaml templating tool that works directly with yaml structures unlike other common templating tools that work with text. by working with structures, ytt avoids problems with yaml escaping, indentation, etc.

it would be nice to allow kapitan to use ytt for templating configuration.

cppforlife avatar Aug 28 '19 16:08 cppforlife

Just to verify, when you say allow kapitan to use ytt for templating configuration do you mean be able to write the inventory in 'ytt' syntax? Or do you mean to be able to process templates written in ytt as a new kapitan input type (like jsonnet, jinja2, kadet, helm etc).

The first option would require writing something that would translate ytt templates in the inventory to re-class compatible yaml. The second would need a new input type defined.

Any other ideas are welcome.

uberspot avatar Aug 29 '19 15:08 uberspot

From earlier conversation (I proposed/suggested the integration) I think what we want is to evaluate "to be able to process templates written in ytt as a new kapitan input type (like jsonnet, jinja2, kadet, helm etc).|

ademariag avatar Sep 05 '19 11:09 ademariag

I am also interested in this feature. Jsonnet has a steep learning curve and not everyone is familiar with it. Similar with Python. Having a YAML-based templating (not Jinja2) would make adoption of Kapitan easier.

logdnalf avatar May 07 '20 08:05 logdnalf