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

ytt outputs to several files #194

Open emayssat opened 3 years ago

emayssat commented 3 years ago

I would like 1 command line to generate several yaml files to make sure they are consistent.

Use case: I am using envoy with a master ytt configuration (in a docker compose environment also under ytt control but different file). Now I want my envoy ytt config to generate a static config. Easy, that's a one to one mapping. But if I want a dynamic configuration (aka xDS) that's a different story. With envoy, you can do xDS with yaml files (basically the envoy process reads its configuration file and sees that it should monitor other yaml files at a given path). So I would like in one command and from one master ytt config, to spit out (1) master envoy configuration (2) cds.yaml, lds.yaml, sds,yaml, rds.yaml (or xDS files) which could in theory each be in a different directories.

emayssat commented 3 years ago

I would like something like example3 on the jsonnet page https://jsonnet.org/

pivotaljohn commented 3 years ago

Some conversation was had here: https://kubernetes.slack.com/archives/CH8KCCKA5/p1598566276208800

pivotaljohn commented 2 years ago

This is not entirely unlike:

I notice that the Slack conversation, above, kinda fizzled out. Seeing if I can't poke for how this worked out for @emayssat ...