Repository navigation
feat(k8s): argo cd image updater keeps the devops application on the digest of service:latest - #1489
Merged
Merged
Conversation
…digest of service:latest (#1485)
This was referenced Oct 9, 2026
Closed
Merged
dan-petty
added a commit
that referenced
this pull request
Oct 9, 2026
* fix(ci): tests render CLI help at the same width locally and in github ci (#1041) (#1475) * fix(cli): docker sandbox and test sandbox dry runs check the workspace as the real run does (#1383) (#1476) * fix(security): remove git daemon stub and port 9418 from devcontainer (#1122) (#1477) * test(security): pin the finding fingerprint and run-store digest to literal values (#855) (#1478) * fix(ai): resolve durable-run store and state files under data directory (#1036) (#1479) * fix(deps): declare direct dependencies and add deptry gate step (#1120) (#1480) * fix(docker): the Docker endpoint check covers the endpoint the SDK dials (#1108) (#1481) * fix(k8s): harden argocd and otel ingress perimeters and add deploy-stack paths (#1371) (#1482) * perf(ci): test workers start 25% faster by deferring model SDK imports (#1338) (#1483) * fix(ci): tests touch no state outside their temporary directories (#1311) (#1484) Isolate test worker homes, temp directories, user data roots, and configs: - Configure each pytest worker with an isolated home under basetemp before devops-cli imports, setting git identity on example.com and recording worker homes. - Add isolate_tempdir fixture setting tempfile.tempdir and temp environment variables to tmp_path. - Drop floor patches of CONFIG_PATH and CONST_USER_DATA_ROOT in conftest, adding user_data_root() helper honoring DEVOPS_CLI_USER_DATA_ROOT across core, git worktree, and tools_lock. - Move Ollama round-robin index under DEVOPS_CLI_DATA_DIR instead of system temp. - Add optional known_hosts parameter to _ensure_known_host. - Update k8s and worktree tests to stay strictly within tmp_path. - Expand session workspace tripwire to verify that worker homes leave no state in devops-cli locations, with pytester tests. Fixes #1311 * fix(security): fingerprint v2 and deterministic correlation (#1141) (#1487) Migrate devops scan and NormalizedFinding to Fingerprint v2 with AST enclosing symbols and 100-character non-whitespace window hashes. Enforce complete linkage in correlation and deterministic representative selection. Closes #1141, absorbs #608. * fix(security): URL credential masking uses urllib and httpx2 (#1109) (#1488) * feat(k8s): argo cd image updater keeps the devops application on the digest of service:latest (#1485) (#1489) * feat(release): v0.2.31 * chore(release): collect the v0.2.31 changelog fragments (#1491) The Service's cut (4d00b96) bumped v0.2.31 without collecting the 13 fragments (#1450), so CHANGELOG.md's newest section was 0.2.30 and the release run would fail on main as v0.2.30's did. This moves them into the [0.2.31] section before release PR #1490 merges. * chore(release): ignore gh v2.102.0's two Go 1.27.1 stdlib CVEs until 2026-10-23 (#1493) Trivy fails the v0.2.31 Service image on CVE-2026-78667 (net/http) and CVE-2026-97031 (crypto/tls) in /usr/local/bin/gh: gh v2.102.0, the newest release, is built with Go 1.27.1 and both are fixed in Go 1.27.2. Both are denial-of-service bugs and gh is a client. The entries expire on 2026-10-23; #1492 bumps gh to a release built with Go 1.27.2 and drops them. --------- Co-authored-by: Daniel Petty <[email protected]> Co-authored-by: dan-petty-bot <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #1485
argocd-image-updater(k8s/argocd/apps/argocd-image-updater.yaml). It installs the argo-helm chartargocd-image-updaterpinned to 1.3.1 into namespaceargocd, and theclusterapp-of-apps manages it like the other chart Applications. AppProjecthomelabalready allows the chart repository, the namespace and cluster-scoped kinds (the CRD).k8s/argocd/image-updater-values.yamlholds the only Image Updater configuration: one ImageUpdater,devops, in the chart'sextraObjects. It selects Applicationdevopsand imageghcr.io/dan-petty/devops-cli/service:latest, withupdateStrategy: digestand nowriteBackConfig. Image Updater therefore writesservice:latest@sha256:<digest>into the Application'sspec.source.kustomize.imagesand commits nothing. The CR syncs together with its CRD, so Argo CD skips its dry run without needing a sync option. The GHCR package is public, so no registry credentials are needed.clusterapp-of-apps already ignores/spec/source/kustomizeondevops, so its self-heal keeps the digest. Only the comment incluster.yamlchanges. deploy-stack's merge patch replaces onlykustomize.patches.imagePullPolicy: IfNotPresent; the CronJob has had it since v0.2.26. A new test pins both.k8s/README.md:spec.source.kustomize.imageson Applicationdevops, and the controller log.latest's digest.deploy-stackrelease. It acts only on Argo CD Applications, and on a fresh native install Helm would reject the CR before its CRD exists ("ensure CRDs are installed first"). On an Argo CD-managed cluster, deploy-stack hands off to Argo CD. The task file records the details.newTagpin and the rest of the custom tag process stay until refactor(release): the release no longer pins, bumps or pre-publishes the service image tag; image updater rolls service:latest #1486. Image Updater's override takes precedence over the pin.changelog.d/1485.md.Test plan
test_image_updater_runs_the_pinned_argo_helm_chart_in_the_argocd_namespace: the chart source (argo-helm, 1.3.1, the values file), the destination, and that the project allows them.test_image_updater_keeps_only_application_devops_on_the_digest_of_service_latest: the whole ImageUpdater, no git write-back, andnamePatternmatches onlydevopsamong the repository's Applications.test_both_workloads_run_the_digest_image_updater_sets_and_pull_it_only_when_missing:kubectl kustomizeof the devops overlay with Image Updater'skustomize.imagesentry renders both workloads onservice:latest@sha256:...withIfNotPresent, despite thenewTagpin.test_deploy_stack_leaves_the_service_digest_image_updater_set_on_application_devops: deploy-stack'skubectl patch, applied with the patch type it sends throughkubectl patch --local(no request), keepskustomize.images. A mutation that clearsimagesfails this test.uv run pytest -n 0over the k8s, docs, task-file, changelog-fragment and architectural-invariant suites; ruff check and format; pre-commit hooks.uv run devops cibefore push.devopsis Ready; Applicationdevopsholdsservice:latest@sha256:<latest's digest>within one poll, and the pod runs it; the next release rolls the Deployment within one poll with no git commit.