You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have a "helm" template whose line contains key: {{aaa}}:{{bbb}} that causes a parsing error not found key! The {{aaa}}:{{bbb}} must be evaluated as value for key but yq thinks that {{aaa}} is a new key so must be in a new line!
I have checked this file with some YAML validator websites and they have trouble with that line.
Version of yq: v4.44.6
Operating system: Ubuntu 24.04
Installed via: wget binary release
But in general this is not possible, e.g. when you need the substitution to be a number or a boolean. Or if you have multi-line logic using {{ if … }}. In that case you must process the file with helm template first to turn it into valid YAML, and only then can you parse it.
Describe the bug
I have a "helm" template whose line contains
key: {{aaa}}:{{bbb}}
that causes a parsing error not found key! The{{aaa}}:{{bbb}}
must be evaluated as value forkey
but yq thinks that{{aaa}}
is a new key so must be in a new line!I have checked this file with some YAML validator websites and they have trouble with that line.
Version of yq: v4.44.6
Operating system: Ubuntu 24.04
Installed via: wget binary release
Input Yaml
data1.yml:
Command
A simple eval even
.
Actual behavior
Error:
Expected behavior
{{ .Values.jaeger.enabled }}
Additional context
I have installed yq with
wget
. It seems snap-installed yq has some inconsistency with root privilege.The text was updated successfully, but these errors were encountered: