We are using ArgoCD and Argo Image Updater on AKS cluster and everything looks perfect except the fact that I'm unable to force Argo Image Updater to filter only specific tags (In my case only tags that have SNAPSHOT in it's name)
These are annotations that were added in Application configuration:
"argocd-image-updater.argoproj.io/git-branch" = "main"
"argocd-image-updater.argoproj.io/image-list" = "rtm=<redacted>.azurecr.io/rtm"
"argocd-image-updater.argoproj.io/rtm.filter-tag" = "^.*SNAPSHOT.*$"
"argocd-image-updater.argoproj.io/rtm.pull-secret" = "pullsecret:argo/acr-credentials"
"argocd-image-updater.argoproj.io/write-back-method" = "git"
I even tried to use regexp: ^.SNAPSHOT.$ as a value of argocd-image-updater.argoproj.io/rtm.filter-tag but no luck, Argo Image Updater is always pulling the latest tag whatever I set. I also tried with annotation argocd-image-updater.argoproj.io/rtm.allow-tags but I'm getting the same results.
When checking Argo Image Updater pod logs it just says that it detected new image and it's updating SNAPSHOT version of image with the latest one.
Based on documentation I'm not missing anything but again maybe someone had the same issue and there is some additional annotation that needs to be added. I just wanna note that ArgoCD and Argo Image updater does work , the only thing that doesn't work (but it's crucial for project) is ability to make Argo Image Updater filter only specific tags.
From official documentation https://argocd-image-updater.readthedocs.io/en/stable/basics/update-strategies/
argocd-image-updater.argoproj.io/myimage.allow-tags: regexp:^[0-9a-f]{7}$
That means it must start with regexp:…
Also take a look at regexp syntax, cause ^
means input beginning, and $
input ending, with this changes, your annotation would be:
argocd-image-updater.argoproj.io/rtm.allow-tags: regexp:.*SNAPSHOT.*