Skip to content

Can the image-automation-controller preserve blank lines in yaml files? #844

@jammy-d

Description

@jammy-d

When the image-automation-controller updates an image on a yaml file, it seems to have the default behaviour to remove any blank lines in the file.

In most manifests this may be fine, but the image-automation-controller is able to update non-manifest yaml files, e.g. .gitlab-ci.yml, docker-compose.yml, etc. For these files it is fairly common to have blank lines between structured blocks.

Is it currently possible, or would it be possible to have the image-automation-controller preserve these blank lines (and any general structure in the YAML file), so that it effectively only edits the lines that are intended to be edited?

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