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
Describe the bug
ArgoCD Image Updater does not update the image tags correctly when multiple images are in a single helm values file.
We can see the commit message has:
updates image workflows-docker-virtual/workflows/workflows-api tag 'staging-3590699-20240327111632' to 'staging-fe2e578-20240717134349'
updates image workflows-docker-virtual/workflows/resource-controller tag 'staging-3590699-20240327111636' to 'staging-fe2e578-20240717134350'
Based on the commit message, it seems like the configuration is correct as it was able to find updates to both images. But it only updates the rc image. The next time the updater runs, it will say that the file contents are as expected and will skip doing any changes. We see the following log line:
time="2024-07-17T12:51:23Z" level=debug msg="target parameter file and marshaled data are the same, skipping commit." application=workflows-staging
If I remove the rc image, then it will successfully update the api image.
To Reproduce
Steps to reproduce the behavior:
Configure an application with multiple sources and the above annotations.
Push new tags for the images at almost the same time.
See ArgoCD Image Updater only updating a single image in the values.yaml file.
Expected behavior
Both image tags should be updated.
After trying to debug locally and going through the code, I noticed that it was picking up the same images multiple times. Turns out that was due to the force-update annotation. Once I removed that annotation, it updates the api image, but not the rc image. The commit description still shows that both images need to be updated.
Describe the bug
ArgoCD Image Updater does not update the image tags correctly when multiple images are in a single helm values file.
We can see the commit message has:
The commit has the following changes to the file:
There should be an additional change to set another Helm value for the
workflows-api
image tag.The application is configured with the following annotations:
Based on the commit message, it seems like the configuration is correct as it was able to find updates to both images. But it only updates the
rc
image. The next time the updater runs, it will say that the file contents are as expected and will skip doing any changes. We see the following log line:If I remove the
rc
image, then it will successfully update theapi
image.To Reproduce
Steps to reproduce the behavior:
values.yaml
file.Expected behavior
Both image tags should be updated.
Additional context
The
values.yaml
file has:The application uses multiple sources:
Version
v0.14.0
Logs
The text was updated successfully, but these errors were encountered: