> I have definitely done some terrible things like "sed -e s/$FOO/foo/g" to implement templating
Next time you reach for this, check out envsubst for a slightly improved solution that’s somewhat standard (at least common).
On the topic of templating or modifying helm charts using jsonnet, you might find Tanka helpful: