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 }}
Repository navigation
emitYAML leaves = and other YAML 1.1 special scalars unquoted #5074
Found with chant 0.124.95 while reading a clone of kubernetes/k8s.io at commit 2b3d9153 offline, for #5067.
emitYAML writes the string = without quotes. In YAML 1.1 a bare = is the value indicator, so 1.1 parsers refuse the file.
Source (kubernetes/gke-utility/monitoring/alerts.yaml, an AlertmanagerConfig):
matchType: "="
Built output:
matchType: =
PyYAML on the built file: could not determine a constructor for the tag 'tag:yaml.org,2002:value'. YAML 1.2 parsers read it as a string. Kubernetes tooling is mixed, so the built file may or may not apply depending on what reads it.
Wanted: quote = and the other YAML 1.1 special scalars (<<, ~, y, n, yes, no, on, off in their case variants, and sexagesimal-looking numbers) when emitting a string.
Activity
fix: emitYAML quotes = and the other YAML 1.1 special scalars (y, n, …
feat: estate-read batch 4, lint and import fixes, YAML emit, Grafana …