Hello,
I'm trying to replicate a setup I have with a k8s configmap that looks like:
apiVersion: v1
kind: ConfigMapdata:
top_level_key: |
a: 1
b: 2
The point of this is that "top_level_key" contains a YAML doc itself.
When I generate this structure with jsonnet, I end up with
data:
top_level_key: "a: 1\nb: 2"
which is of course the same thing, but makes reading the thing as a human much harder.
I can work around this with a shell script to generate the contents of top_level_key with one invocation of jsonnet and then import it using includestr, but it would be nice not to need the driver script.
Is there a way to "output multiline text" without 2 invocations of jsonnet?