Skip to content
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

feat: Introduce update strategy 'digest' #176

Merged
merged 6 commits into from
Mar 29, 2021

Conversation

jannfis
Copy link
Contributor

@jannfis jannfis commented Mar 28, 2021

This change introduces the new update strategy digest, which allows to track a single tag for updates.

Configuration is as follows to track new versions of latest tag pushed to the some/image repository:

argocd-image-updater.argoproj.io/image-list: foo=some/image:latest
argocd-image-updater.argoproj.io/foo.update-strategy: digest

The tag to track must be specified in the constraint section of the image list.

Closes #174

Signed-off-by: jannfis [email protected]

@codecov
Copy link

codecov bot commented Mar 28, 2021

Codecov Report

Merging #176 (af78293) into master (5da428b) will decrease coverage by 1.31%.
The diff coverage is 46.98%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #176      +/-   ##
==========================================
- Coverage   68.37%   67.05%   -1.32%     
==========================================
  Files          19       19              
  Lines        1404     1454      +50     
==========================================
+ Hits          960      975      +15     
- Misses        358      388      +30     
- Partials       86       91       +5     
Impacted Files Coverage Δ
pkg/image/options.go 73.86% <0.00%> (-1.72%) ⬇️
pkg/registry/client.go 0.00% <0.00%> (ø)
pkg/argocd/update.go 68.45% <20.00%> (-1.00%) ⬇️
pkg/registry/registry.go 59.81% <29.41%> (-1.36%) ⬇️
pkg/image/version.go 62.06% <31.25%> (-14.02%) ⬇️
pkg/tag/tag.go 83.87% <63.63%> (-2.93%) ⬇️
pkg/image/image.go 92.68% <95.23%> (-1.84%) ⬇️
pkg/argocd/argocd.go 60.30% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5da428b...af78293. Read the comment docs.

@jannfis jannfis marked this pull request as ready for review March 29, 2021 18:09
@jannfis jannfis merged commit 197fde9 into argoproj-labs:master Mar 29, 2021
sribiere-jellysmack pushed a commit to sribiere-jellysmack/argocd-image-updater that referenced this pull request Aug 13, 2024
* feat: Introduce update strategy 'digest'

Signed-off-by: jannfis <[email protected]>

* Update tests

Signed-off-by: jannfis <[email protected]>

* Set dummy digest for update strategy 'digest'

Signed-off-by: jannfis <[email protected]>

* Update docs

Signed-off-by: jannfis <[email protected]>

* Update spelling

Signed-off-by: jannfis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add update strategy to restart deployment if digest for same tag has changed
1 participant