carvel-dev / ytt

YAML templating tool that works on YAML structure instead of text
https://carvel.dev/ytt
Apache License 2.0
1.62k stars 136 forks source link

Create example: Templating in a multiline string #651

Open cari-lynn opened 2 years ago

cari-lynn commented 2 years ago

Why

A common use case for Kubernetes ConfigMaps and Secrets are to put values in a multiline string, which may need to be templated. Templating that multiline string isn’t obvious (it requires yaml.encode()).

What

There exists an example of this. Put this or another example into the official docs.

How

Either in the playground or in the carvel.dev/ytt docs.

Here is a request for this

toransahu commented 3 months ago

+1