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
Is your feature request related to a problem? Please describe.
When the Image Updater updates kustomiztion.yaml file it does not sort the image component for new entries (nor retain existing formatting).
- name: ...
digest: ...
vs (say via the use of kustomize)
- digest: ...
name: ...
Describe the solution you'd like
I would like the ordering to be sorted, or to retain the existing formatting.
Additional context
This is useful for us because we perform git diff comparisons (golden-tests) as part of our CI on our rendered manifests. Because argocd-image-updater changes the ordering, we frequently hit failed pipelines.
The text was updated successfully, but these errors were encountered:
nabadger
changed the title
Retain or sort YAML ordering of images component
Retain or sort YAML ordering of images component when using Git write-back method
Dec 12, 2022
This commit causes argocd-image-updater to preserve the order of fields
in the kustomization.yaml file when updating the image(s). Doing so will
minimize git diffs in the case that other tools also edit the
kustomization.yaml file.
Fixesargoproj-labs#502
jtdoepke
added a commit
to jtdoepke/argocd-image-updater
that referenced
this issue
Jan 9, 2024
This commit causes argocd-image-updater to preserve the order of fields
in the kustomization.yaml file when updating the image(s). Doing so will
minimize git diffs in the case that other tools also edit the
kustomization.yaml file.
Fixesargoproj-labs#502
This commit causes argocd-image-updater to preserve the order of fields
in the kustomization.yaml file when updating the image(s). Doing so will
minimize git diffs in the case that other tools also edit the
kustomization.yaml file.
Fixesargoproj-labs#502
Is your feature request related to a problem? Please describe.
When the Image Updater updates kustomiztion.yaml file it does not sort the
image
component for new entries (nor retain existing formatting).vs (say via the use of
kustomize
)Describe the solution you'd like
I would like the ordering to be sorted, or to retain the existing formatting.
Additional context
This is useful for us because we perform
git diff
comparisons (golden-tests) as part of our CI on our rendered manifests. Because argocd-image-updater changes the ordering, we frequently hit failed pipelines.The text was updated successfully, but these errors were encountered: