Why are we templating YAML? (2019)
leebriggs.co.uk
Why are we templating YAML? (2019)
1–10 of 667 posts
Re: Why are we templating YAML? (2019)
#2By the way the answer to the question "why are we templating yaml?" is: people are just more familiar with it and don't want to have to translate examples to jsonnet that they copy and paste from the web. Do not underestimate this downside :) Same downside would probably apply to TypeScript-generated configs I bet.
Re: Why are we templating YAML? (2019)
#3If you like what is presented in this article, take a look at Grafana Tanka (https://tanka.dev).
Re: Why are we templating YAML? (2019)
#4Re: Why are we templating YAML? (2019)
#5Re: Why are we templating YAML? (2019)
#6I am really sad that jsonnet / ksonnet never really took off. It’s a great way to template, but has a bit of a learning curve in my experience. I suspect that is why it’s niche. If you like what is presented in this article, take a look at Grafana Tanka ( https://tanka.dev ).
Re: Why are we templating YAML? (2019)
#7gotmpl is a lot easier to grok if you are coming in cold. Yes it sucks for anything mildly complex, but the barrier to entry is significantly lower.
Generation via real programming languages is the future I am hoping for.
Re: Why are we templating YAML? (2019)
#8Re: Why are we templating YAML? (2019)
#9This article made me think it'd be nice to generate k8s JSON using TypeScript. Just a node script that runs console.log(JSON.stringify(config)), and you pipe that to a yaml file in your deploy script. The syntax seems more sane and has more broad appeal than jsonnet, and I'd wager that the dev tooling would be better given good enough typings. By the way the answer to the question "why are we templating yaml?" is: pe…
Re: Why are we templating YAML? (2019)
#10Just build an application that calls AWS APIs directly when you want to deploy or update an environment.