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
{{ message }}
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.
I am having an issue with preserving string values of "yes" and "no" after converting from str -> yaml value -> (string/str). "yes" is not the same as yes (YAML version 1.1 interprets the latter as bool). Is there a setting or flag I can set to preserve the double quotes around strings yes and no, so they do not get interpreted as bools?
Ex: nginx annotation in k8s manifest file:
yaml value -> (string/str) in serde 0.8.26 produces: nginx.ingress.kubernetes.io/proxy-buffering: "on"
however, serde 0.9.13 produces: nginx.ingress.kubernetes.io/proxy-buffering: on
which in our case ends up throwing an error, when we try to run kubectl apply:
error: unable to decode "/tmp/.tmpfwYrJw/base/ingress.yaml": resource.metadataOnlyObject.ObjectMeta: v1.ObjectMeta.Annotations: ReadString: expects " or n, but found t, error found in #10 byte of ...|ffering":true,"nginx|..., bigger context ...|K","nginx.ingress.kubernetes.io/proxy-buffering":true,"nginx.ingress.kubernetes.io/ssl-redirect":"tr|...
I am having an issue with preserving string values of "yes" and "no" after converting from str -> yaml value -> (string/str). "yes" is not the same as yes (YAML version 1.1 interprets the latter as bool). Is there a setting or flag I can set to preserve the double quotes around strings yes and no, so they do not get interpreted as bools?
expected output file:
actual output file:
The text was updated successfully, but these errors were encountered: