Skip to content

fix: stop pinning staging to :latest (image-updater allow-tags)#81

Merged
eswan18 merged 1 commit into
mainfrom
fix/image-updater-allow-tags
Jun 10, 2026
Merged

fix: stop pinning staging to :latest (image-updater allow-tags)#81
eswan18 merged 1 commit into
mainfrom
fix/image-updater-allow-tags

Conversation

@eswan18

@eswan18 eswan18 commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Problem

argocd-image-updater is configured with update-strategy: newest-build and no tag filter. Cloud Build pushes both $SHORT_SHA and latest for the same image (same digest, same build time), so when image-updater resolves the "newest build" it ties between latest and the newest {sha} tag and picks latest — pinning the staging Application's kustomize.images to ...:latest.

As a result staging perpetually runs :latest instead of a real SHA, and the bifrost deploy dashboard reports this service's staging as "unknown" (an unparseable tag).

Fix

Add an allow-tags regexp restricting candidate tags to immutable SHA tags (^[a-f0-9]{7,}$), excluding latest. image-updater then always pins the newest {sha} tag. This mirrors the working config already on forecasting and bifrost.

Staging-only; prod has no image-updater and is unaffected. After merge, re-apply the Application for it to take effect:

kubectl apply -f k8s/argocd/applications.yaml

🤖 Generated with Claude Code

image-updater (newest-build, no tag filter) ties `latest` against the
newest `{sha}` tag — both pushed for the same image at the same build
time — and resolves the tie to `:latest`, so staging runs `:latest`
forever instead of a real SHA. Add an allow-tags filter restricting
candidates to SHA tags, matching forecasting/bifrost. Staging-only.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@eswan18 eswan18 merged commit c7126ce into main Jun 10, 2026
1 check passed
@eswan18 eswan18 deleted the fix/image-updater-allow-tags branch June 10, 2026 03:18
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.

1 participant