You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An update triggers argocd-image-updater to update a kustomize file with a new digest, it also reformats the entire file. The format style it uses is different from that of yamlfmt and prettier, which causes unnecessary changes in git.
I'm guessing the reformat is done to avoid having to infer how many spaces are needed for indentation.
Describe the solution you'd like
Infer how many spaces are needed for indentation so reformatting the whole file is not needed.
Or only reformat when digest does not exists, and then when it already exists, update it in place without reformating:
We are using treefmt to run a bunch of formatters on code and check style in CI. I might have to manually have it ignore certain kustomize files that have digests that are updated by argocd-image-updater to avoid CI warnings, and let the style be inconsistent.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When using:
An update triggers argocd-image-updater to update a kustomize file with a new digest, it also reformats the entire file. The format style it uses is different from that of yamlfmt and prettier, which causes unnecessary changes in git.
I'm guessing the reformat is done to avoid having to infer how many spaces are needed for indentation.
Describe the solution you'd like
Infer how many spaces are needed for indentation so reformatting the whole file is not needed.
Or only reformat when digest does not exists, and then when it already exists, update it in place without reformating:
Describe alternatives you've considered
We are using
treefmt
to run a bunch of formatters on code and check style in CI. I might have to manually have it ignore certain kustomize files that have digests that are updated by argocd-image-updater to avoid CI warnings, and let the style be inconsistent.The text was updated successfully, but these errors were encountered: