-
Notifications
You must be signed in to change notification settings - Fork 273
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
Improve Application updates when write-back method is ArgoCD #965
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #965 +/- ##
==========================================
- Coverage 74.64% 73.61% -1.04%
==========================================
Files 31 31
Lines 3913 3991 +78
==========================================
+ Hits 2921 2938 +17
- Misses 856 910 +54
- Partials 136 143 +7 ☔ View full report in Codecov by Sentry. |
39ca879
to
1b65b95
Compare
7f83501
to
0f06fcb
Compare
Signed-off-by: Álvaro Aguilar-Tablada Espinosa <[email protected]>
Signed-off-by: Álvaro Aguilar-Tablada Espinosa <[email protected]>
Signed-off-by: Álvaro Aguilar-Tablada Espinosa <[email protected]>
4cc5de5
to
1f859d7
Compare
@aaguilartablada thanks for contributing this valuable enhancement! |
…j-labs#965) Signed-off-by: Álvaro Aguilar-Tablada Espinosa <[email protected]>
…981) Signed-off-by: Álvaro Aguilar-Tablada Espinosa <[email protected]> Co-authored-by: Álvaro Aguilar-Tablada Espinosa <[email protected]>
0.15.2 was released on 2025-01-06: https://github.com/argoproj-labs/argocd-image-updater/releases |
When the write-back method is ArgoCD, the Image Updater sends an update to the ArgoCD Application on each iteration. No matter whether the new image has already been set or not, it always sends the update. In a situation where autoSync is disabled, this means that it continuously sends updates until somebody syncs the Application.
To reduce updates and improve resource usage, this pull request slightly changes the behavior. The Image Updater will check if the new image is already set in the Application source to apply the update or ignore it.
We have tested the changes in our ArgoCD instance to check the feature and you can see the results in the image below. Updates have been reduced. Once they are applied, updates disappear. CPU and memory usage have been improved.