Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Make sure multi-yamels are delimited #917

Merged
merged 1 commit into from
Jan 26, 2018
Merged

Conversation

squaremo
Copy link
Member

@squaremo squaremo commented Jan 25, 2018

We concatenate multiple manifest files into a YAML multidoc, so that
we can kubectl apply it all at once. The string "---\n" was used
to put a YAML document delimiter betwen each file's contents; however,
if a file does not end in a newline, this doens't end up on its own
line, and it interpreted as part of the preceeding document.

-> use "\n---\n", on the basis that blank lines (if the file does
have a trailing newline) are harmless.

This commit also adds a bit more detail of what's being applied, to
the log.

Fixes #916.

We concatenate multiple manifest files into a YAML multidoc, so that
we can `kubectl apply` it all at once. The string `"---\n"` was used
to put a YAML document delimiter betwen each file's contents; however,
if a file does not end in a newline, this doens't end up on its own
line, and it interpreted as part of the preceeding document.

-> use `"\n---\n"`, on the basis that blank lines (if the file _does_
have a trailing newline) are harmless.

This commit also adds a bit more detail of what's being applied, to
the log.
@squaremo squaremo force-pushed the issue/916-missing-sync branch from 0c090b2 to 7ab9cbd Compare January 25, 2018 14:27
@squaremo squaremo merged commit 85a2602 into master Jan 26, 2018
@squaremo squaremo deleted the issue/916-missing-sync branch January 26, 2018 11:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants