Skip to content

fix(manifests): tolerate objects without a trailing newline#42

Merged
muff1nman merged 1 commit into
cloudflare:masterfrom
muff1nman:ademaria/ai/fix-manifest-separator
Jul 6, 2026
Merged

fix(manifests): tolerate objects without a trailing newline#42
muff1nman merged 1 commit into
cloudflare:masterfrom
muff1nman:ademaria/ai/fix-manifest-separator

Conversation

@muff1nman

Copy link
Copy Markdown
Contributor

The release job renders stable.yaml/cluster.yaml by concatenating each object after an echo '---'. When a source object lacks a trailing newline the following separator lands on that object's last line (e.g. name: sciuro-leader---), yielding a stream that strict YAML parsers reject with a duplicate-key error. Append a newline after any object that lacks one so the separator always starts its own line.

Reviewed-by: Andrew DeMaria

The release job renders stable.yaml/cluster.yaml by concatenating each
object after an `echo '---'`. When a source object lacks a trailing
newline the following separator lands on that object's last line (e.g.
`name: sciuro-leader---`), yielding a stream that strict YAML parsers
reject with a duplicate-key error. Append a newline after any object
that lacks one so the separator always starts its own line.

Reviewed-by: Andrew DeMaria
@muff1nman
muff1nman merged commit 4738b6b into cloudflare:master Jul 6, 2026
4 checks passed
@muff1nman
muff1nman deleted the ademaria/ai/fix-manifest-separator branch July 6, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants