jsonnet std.parseYaml wraps result in an array when string values contain --- #17676
Open
3 tasks done
Labels
bug
Something isn't working
Checklist:
argocd version
.Describe the bug
When using Jsonnet to generate manifests, std.parseYaml function returns incorrect result when string values contain
---
I've also filed an issue here:
google/jsonnet#1147
Jsonnet go implementation (https://github.com/google/go-jsonnet) seems unaffected when I tested it locally (which is strange, because I believe that's the version argocd is using).
To Reproduce
Create an app with
test.jsonnet
file with the following content:Expected behavior
the
key
value should be{"a": "bad---"}
and not[{"a": "bad---"}]
Screenshots
Version
Logs
Not relevant
The text was updated successfully, but these errors were encountered: