argocd-image-updater
argocd-image-updater copied to clipboard
Testing regexp for latest updates strategy
Describe the bug
Invoking argocd-image-updater test prints out:
...
# Check for the latest built image for a tag that matches a pattern
argocd-image-updater test nginx --allow-tags '^1.19.\d+(\-.*)*$' --update-strategy latest
...
So lets test it:
/usr/local/bin $ argocd-image-updater test nginx --allow-tags '^1.19.\d+(\-.*)*$' --update-strategy latest
DEBU[0000] Creating in-cluster Kubernetes client
WARN[0000] Invalid match option syntax '^1.19.\d+(\-.*)*$', ignoring image_alias= image_name=nginx registry_url=
INFO[0000] retrieving information about image image_alias= image_name=nginx registry_url=
INFO[0000] Fetching available tags and metadata from registry application=test image_alias= image_name=nginx registry_url=
DEBU[0000] Using canonical image name 'library/nginx' for image 'nginx' application=test image_alias= image_name=nginx registry_url=
INFO[0000] Found 0 tags in registry application=test image_alias= image_name=nginx registry_url=
INFO[0000] no newer version of image found application=test image_alias= image_name=nginx registry_url=
Reason theres no images found is most likely other warning about invalid match option syntax, altho regex compiles correctly.
Am I missing anything there?
Version
/usr/local/bin $ argocd-image-updater version
argocd-image-updater: v0.12.1+16cff2e
BuildDate: 2022-12-06T23:42:50Z
GitCommit: 16cff2e66bcce86ba3ba034788ab5cbf18d8ed88
GoVersion: go1.17.8
GoCompiler: gc
Platform: linux/amd64