Skip to content

fix(filter): guard kyaml pass to prevent dropping trailing newlines - #10166

Open
kavix wants to merge 1 commit into
GoogleContainerTools:mainfrom
kavix:fix-filter-newline
Open

kavix wants to merge 1 commit into
GoogleContainerTools:mainfrom
kavix:fix-filter-newline

Conversation

@kavix

@kavix kavix commented Aug 28, 2026

Copy link
Copy Markdown

Fixes #10159. skaffold filter modifies the trailing newline on block scalars when running the kyaml pass for ApplySetters. By guarding this pass, we avoid the round-trip when there are no manifest overrides, which is the common case.

Fixes GoogleContainerTools#10159. `skaffold filter` modifies the trailing newline on block scalars when running the kyaml pass for ApplySetters. By guarding this pass, we avoid the round-trip when there are no manifest overrides, which is the common case.
@kavix
kavix requested a review from a team as a code owner August 28, 2026 09:11
@google-cla

google-cla Bot commented Aug 28, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skaffold filter drops the trailing newline from the last value in a ConfigMap (regression in v2.6.0)

1 participant