image-automation-controller icon indicating copy to clipboard operation
image-automation-controller copied to clipboard

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

Open jammy-d opened this issue 8 months ago • 3 comments

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?

jammy-d avatar Feb 12 '25 21:02 jammy-d