-
Notifications
You must be signed in to change notification settings - Fork 278
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
Broken annotation "argocd-image-updater.argoproj.io/image-list" if there is more than one image in it #1008
Comments
I tested with my sample app (https://github.com/chengfang/image-updater-examples/tree/main/image-list-kustomize) with image-updater v0.15.2, and works as expected. This app configures 2 updateable images with |
Your example is completely unrepresentative. You are using a completely different update-strategy. Moreover, you are using the write-back-method - git. I want to use default settings where possible. If write-back-methods other than git are no longer supported, this should be documented. |
To rule out possible problems specific to my installation that could have arisen historically, I completely removed all argocd resources including the namespace. I reinstalled everything and the behavior changed a bit:
But it should be like this:
|
I updated my sample app to use kubectl describe -n argocd apps image-list-kustomize
Sync:
Compared To:
Destination:
Name: in-cluster
Namespace: argocd
Source:
Kustomize:
Images:
nginx:latest@sha256:0a399eb16751829e1af26fea27b20c3ec28d7ab1fb72182879dcae1cca21206a
bitnami/nginx:latest@sha256:c02e18884badbd9482fd731668f75a3033124c748bc709651fb06062d0ab38c1 |
Thank you for taking the time to do this. Obviously, i need to analyze more deeply what is happening in my setup to find out what is different from the working default... Please tell me which version of argocd and kubernetes was used in this test 🙏 |
I'm using latest version (v0.15.2) of image-updater, and pretty recent version of argo-cd: time="2025-01-15T13:12:24Z" level=info msg="ArgoCD API Server is starting" built="2024-08-27T11:57:48Z" commit=6b9cd828c6e9807398869ad5ac44efd2c28422d6 namespace=argocd port=8080 version=v2.12.3+6b9cd82 kubectl version:
|
Quite an old version of argocd. I have the latest version argocd - 2.13.3
Thanks for the information. I'll have to create a test bench for training. |
@chengfang I finally got to the truth. The problem is that I was using registry on a user port.
After i reconfigured my registry to use the default port 443, everything worked.
Looks like i missed the documentation where it states that custom ports don't work. Although if only one image is specified, it also works with a custom port... I also apologize for initially setting the task incorrectly, without specifying such an important detail... |
Describe the bug
If multiple images are listed, only the last one is applied.
To Reproduce
An application that contains the following annotations:
According to the documentation, the corresponding kustomize should be processed and created:
In real life, this kustomize is created:
Expected behavior
I expect this to work correctly.
Additional context
This worked on some previous version, but rolling back to previous versions does not fix the problem.
Version
v0.15.2
Logs
In the log at each interval of synchronization with the registry there are such messages:
In fact, the image in the pod is not updated.
If the first or second image is specified, but only one, the pod update is successful.
The text was updated successfully, but these errors were encountered: