Skip to content

Is there a way to ignore line-endings as changes? #512

Open

Description

@InDieTasten

I'm diffing against a previous revision of a chart an am gettings the entire chart definition as diff, apart from the last line in every resource. I suspect the diffing tool recognizes different line endings. I don't know how they ocurred in the first place, but it would be great to know, if this is something I can toggle.

This is how the output looks like:
image

Activity

  1. antoineozenne commented on Feb 4, 2025

    @antoineozenne

    Same thing for us. Some of us use Helm on Windows to deploy, and others on Mac. This makes the plugin unusable as large parts of the charts are always shown as different.

  2. antoineozenne commented on Feb 4, 2025

    @antoineozenne

    @InDieTasten This seems to be a duplicate of #305. We can use --nomalize-manifests in the diff command to ignore style differences.

  3. quickwind commented on Jul 16, 2025

    @quickwind

    @antoineozenne thanks, that trick works good for normal manifest, but for the configmap, it still shows everything as diff. Even worse, the old values are shown as normal (line wrapped correctly), but the new change shown as one line string with \n:(

    I think this plugin should work out of the box for this, and should cater for the end of line like in git. @databus23 FYI.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions