-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArgoCD Image Updater logs says image is updated, but it's not. #964
Comments
Just read this article. The issue probably arises from the fact I'm using ApplicationSet. ArgoCD Image Updater tries to update the Application resource but as Im using ApplicationSet they somehow conflict and the pod doesn't restart / the image doesn't updates. @chengfang what's the suggested way of handling image updater along with ApplicationSet? |
i have the exact same issues and tried the workarounds in the linked article above and the application policy, and still have the same issue, i am using kustomize patches in the appset. Are there any other workarounds for this issue? |
Like @nia-potato, I also use kustomize but I don't use an ApplicationSet and I have the same issue. All the related issues point to ApplicationSet as the culprit but it doesn't seem to be the case. |
@mrksph in the description you mentioned using image-updater v0.15.0. Not sure if you have tried the patch release v0.15.1, which fixed a bug with app-of-apps: #896 . @pablo-tx for non-applicationset cases, things to double check:
|
hi @chengfang i have tried with the latest version v0.15.1 and have tried it with a application instead of applicationset with the three things you mentioned to check, with argocd write-back method, but the issue still seems to be persisting. Is there anything else i should check? |
sorry for the late reply, I made it work following the article I mentioned. |
@chengfang the auto-sync works well, it updates the image properly when there are changes. My particular problem is that the messages mentioned in the issue are recurrent every 2 minutes even if there isn't any change. I use argocd as write back method |
i have the exact same issue with @pablo-tx when testing with git write back, @chengfang any ideas? it basically goes into a loop of spamming the PR/MR. |
Describe the bug
When using ArgoCD with ArgoCD Image Updater (v0.15.0, also tested with v0.14.0) and ApplicationSet to deploy a demo API to a k3s cluster, the Image Updater successfully updates the image in the ArgoCD application spec, but the pod does not restart to pull the updated image. The updated image is hosted on GitHub Container Registry (GHCR) as a private repository, and credentials are correctly configured.
ArgoCD Image Updater logs shows that it correctly downloads and updates the image (I see the image download count increase in the repo packages page) but says it is pending spec update (dry run=false):
Successfully updated image 'ghcr.io/mrksph/demo-api@dummy' to 'ghcr.io/mrksph/demo-api@sha256:3039e1fc83a2e3e2400b842a03fc8b4669a9f9b3ef16466b242d8b489f21637e', but pending spec update (dry run=false)"
I remember I did manage to set this up some months ago. Now that I'm back with it, I can't make it work.
To Reproduce
Steps to reproduce the behavior:
argocd-bootstrap.yaml
applicationset.yaml
dev/demo-api/values.yaml
Expected behavior
After the image is successfully updated in the ArgoCD spec, the associated pod should restart and pull the updated image.
Additional context
Version
Logs
The text was updated successfully, but these errors were encountered: