argoproj-labs / argocd-image-updater

Automatic container image update for Argo CD
https://argocd-image-updater.readthedocs.io/en/stable/
Apache License 2.0
1.29k stars 265 forks source link

Kustomize using Helm Charts - Constantly updating images #814

Open tman5 opened 3 months ago

tman5 commented 3 months ago

We're using Helm charts through Kustomize. During every update cycle the images are being updated even if there are no image updates in the upstream repo:

2024-08-06T10:43:27.268478185-04:00 stdout F time="2024-08-06T14:43:27Z" level=info msg="Successfully updated image 'registry.local/myapp@dummy' to 'registry.local/myapp@sha', but pending spec update (dry run=false)" alias=myapp application=myapp image_name=myapp image_tag=app registry=registry.local

I have these annotations on the application object, however, I don't think they do anything because it's using kustomize not helm. But the problem is it keeps trying to update

        argocd-image-updater.argoproj.io/myapp.helm.image-name: image.repository
        argocd-image-updater.argoproj.io/myapp.helm.image-tag: image.tag
chengfang commented 3 months ago

@tman5 can you share more application details, trace logs, etc? Does it happen with digest update strategy, or happen to other strategies too?

tman5 commented 2 months ago

Digest update strategy - that's the only one that works for our workflow. What other details do you need specifically? It's a custom helm chart we developed and it's using the helm chart inflator in kustomize.