Repository navigation
Closed
Labels
scope/k8sKubernetes commands, Helm charts, pods, services, and policiestype/featureType feature: a new function
Milestone
Description
Requested by the owner, 2026-10-09: "for the service image, and any other internal services where we control the lifecycle, I want to implement argocd image updater and rip out the custom process for updating service version tags completely", with the digest strategy on :latest and no git commits back to the repository. This item installs and configures it; #1486 removes the custom process in a later release, so the two never reach main in the same merge.
Problem
Checked at main (8598e79).
- The Service image tag reaches the cluster through a custom path: the cut bumps
newTagink8s/devops/kustomization.yaml(commands/release.py_update_service_image_tag),devops release checkholds that pin to the version, andrelease.ymlpublishesservice:vX.Y.Zfrom the release branch first (fix(release): the Service image a release pins is published before main pins it, so Argo CD never rolls the roadmap Service onto a missing image #1451) so main never pins a missing image. - One image qualifies as an internal service whose lifecycle we control:
ghcr.io/dan-petty/devops-cli/service, deployed by Applicationdevopsin theroadmap-serviceDeployment and thedevops-cliCronJob (both name it untagged). The devcontainer image is not deployed; every other image in the cluster is third-party and pinned by tag. - Image Updater is not installed (no controller, no
imageupdaters.argocd-image-updater.argoproj.ioCRD). Argo CD runs v3.5.3 from chart 10.9.6.
Proposed design
- An Application
argocd-image-updaterink8s/argocd/apps/, from the argo-helm chartargocd-image-updaterpinned to 1.3.1 (app v1.3.0, built against Argo CD 3.5), in namespaceargocd, managed by theclusterapp-of-apps like the other chart Applications. Image Updater talks only to the Kubernetes API and must run in the namespace of the Applications it selects (https://argocd-image-updater.readthedocs.io/en/stable/install/installation/). - One ImageUpdater resource (
argocd-image-updater.argoproj.io/v1alpha1) inargocd:Nospec: applicationRefs: - namePattern: devops images: - alias: service imageName: ghcr.io/dan-petty/devops-cli/service:latest commonUpdateSettings: updateStrategy: digest
writeBackConfig, so the defaultargocdmethod writesservice:latest@sha256:<digest>into the devops Application'sspec.source.kustomize.images; nothing commits to git. Theclusterapp-of-apps already ignores/spec/source/kustomizeondevopswithRespectIgnoreDifferences=true(k8s/argocd/bootstrap/cluster.yaml), so its self-heal does not revert the write. - GHCR needs no credentials (the package is public), so no registries entry.
imagePullPolicy: IfNotPresenton both containers (the Deployment has it; the CronJob gets it). Kubernetes defaults a reference whose tag islatesttoAlways, even with a digest; the digest makesIfNotPresentexact and keeps a registry outage from blocking a restart.- Until refactor(release): the release no longer pins, bumps or pre-publishes the service image tag; image updater rolls service:latest #1486 lands, the old
newTagpin stays in git; the Application override takes precedence, so there is no window in which the render is an untaggedlatest.
Acceptance criteria
- The new Application pins the chart version, and a test renders the ImageUpdater resource: it selects exactly Application
devopsand imageservice:latestwith strategydigest, and sets no git write-back. - Both workloads set
imagePullPolicy: IfNotPresent. - A test shows
deploy-stack's host merge patch (argocd_overrides.py) leavesspec.source.kustomize.imagesuntouched. - k8s/README.md's GitOps section names the new Application and how to read the deployed digest (the ImageUpdater status, or
spec.source.kustomize.imageson Applicationdevops). - After the release that carries this merges: the controller is Ready, and Application
devopsholdsservice:latest@sha256:<latest's digest>within one poll (2 min) with the pod on that digest; when the next release moveslatest, the Deployment rolls within one poll with no git commit. (Person-checked in the cluster.) -
changelog.d/<issue>.md.
Metadata
Metadata
Assignees
Labels
scope/k8sKubernetes commands, Helm charts, pods, services, and policiestype/featureType feature: a new function
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 9, 2026
Placed by the owner, 2026-10-09: first in its release (#1485 in v0.2.31, then #1486 in v0.2.32), so Image Updater is live before the custom tag process is removed.
dan-petty-bot commentedon Oct 9, 2026
Intake placed this item kept in v0.2.31: a person placed it in v0.2.31, and that placement stands.
Owner-requested planned improvement with a clear design and a companion issue (#1486), but the current process works after #1451, so it is not urgent.Removes a custom release-time tag-bump step and eliminates the window where main pins a not-yet-published image, improving maintainability and reliability of the deploy pipeline.Requires installing a new Helm chart, creating an ImageUpdater CR, adjusting imagePullPolicy on two workloads, writing render and merge-patch tests, and updating documentation.dan-petty-bot commentedon Oct 9, 2026
Admitted to v0.2.31: after v0.2.31 started, only a critical fix can join it. A person can place it in a planned release, and that placement stands. (devops roadmap reprioritize)
feat(k8s): argo cd image updater keeps the devops application on the …
dan-petty-bot commentedon Oct 9, 2026
What changed
#1489, merged into
release/v0.2.31as 1af11de.9 file(s) changed.
How it was verified
Check runs at a556075:
Acceptance Criteria of
docs/agent/tasks/task-1485-argocd-image-updater.md:devopsand imageservice:latestwith strategydigest, and sets no git write-back.test_image_updater_runs_the_pinned_argo_helm_chart_in_the_argocd_namespacepins the chart source (argo-helm,argocd-image-updater, 1.3.1, the values file), the destination, and that AppProjecthomelabadmits the repository, the namespace and cluster-scoped kinds.test_image_updater_keeps_only_application_devops_on_the_digest_of_service_latestcompares the whole values file, which the chart'sextraObjectstemplate renders as written, and matchesnamePatternagainst every Application in the repository: onlydevopsmatches. Both are intests/test_k8s_argocd_apps.py.imagePullPolicy: IfNotPresent.test_both_workloads_run_the_digest_image_updater_sets_and_pull_it_only_when_missing(tests/test_k8s_devops_runtime.py) renders Applicationdevops's overlay with Image Updater'skustomize.imagesentry throughkubectl kustomize: CronJobdevops-cliand Deploymentroadmap-serviceboth runservice:latest@sha256:<digest>withIfNotPresent, despite thenewTagpin.deploy-stack's host merge patch (argocd_overrides.py) leavesspec.source.kustomize.imagesuntouched.test_deploy_stack_leaves_the_service_digest_image_updater_set_on_application_devops(tests/test_k8s.py) runsdevops k8s deploy-stack --stack devopsagainst the suite's Argo CD-managed cluster double, then applies thekubectl patchit sent, with the patch type it sent, to a live Application holding Image Updater's digest and an older host patch throughkubectl patch --local, which makes no request. The result keeps the digest and holds only the new host patches.k8s/README.md's GitOps section names the new Application and how to read the deployed digest (kubectl -n argocd get imageupdater devops, itsstatus.recentUpdates, Applicationdevops'sspec.source.kustomize.images, and the controller's log).argocd-image-updateris Synced and Healthy, Deploymentargocd-image-updater-controllerinargocdis ready, andkubectl -n argocd get imageupdater devopsshows ReadyTruewith one application and one image.kubectl -n argocd get application devops -o jsonpath='{.spec.source.kustomize.images}'holdsghcr.io/dan-petty/devops-cli/service:latest@sha256:<digest>, where<digest>is whatdocker buildx imagetools inspect ghcr.io/dan-petty/devops-cli/service:latest --format '{{ .Manifest.Digest }}'prints, and the roadmap-service pod runs that reference (kubectl -n devops get pods -l app.kubernetes.io/name=roadmap-service -o jsonpath='{.items[*].spec.containers[*].image}').latest, theroadmap-serviceDeployment rolls within one poll, ImageUpdaterdevops'sstatus.recentUpdatesrecords the update, and no commit from Image Updater reaches the repository.changelog.d/1485.md.feat(release): v0.2.31 (#1490)
refactor(release): the release no longer pins, bumps or pre-publishes…
feat(release): v0.2.32 (#1516)