grafana / tanka

Flexible, reusable and concise configuration for Kubernetes
https://tanka.dev
Apache License 2.0
2.36k stars 167 forks source link

Cannot read yaml with block string or string with new lines. #1142

Open blmhemu opened 3 weeks ago

blmhemu commented 3 weeks ago

Cannot parse yaml files with newlines in strings. ex:

cert: |
  ----BEGIN----
  ----END-----

Tried with

cert: '----BEGIN---\n....\n----END----'

still not working

blmhemu commented 3 weeks ago

Workaround for the wanderers - base64 encode the multiline string (and use std.base64 in jsonnet if you want actual value)

zerok commented 2 weeks ago

How are you loading the YAML data? std.parseYaml(importstr "dummy.yaml") seems to work for me 🙂