Repository navigation
Closed
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/k8sKubernetes commands, Helm charts, pods, services, and policiestype/testType test: a new or changed testvalue/mediumValue Medium
Description
Friction
- Split from feat(ci): a pull request builds the pages site and renders the argo cd overlay read-only, so a site or deploy break fails before the merge #1651, whose pull request delivers only the docs-site job. The image-pins check of feat(ci): a pull request builds the pages site and renders the argo cd overlay read-only, so a site or deploy break fails before the merge #1651 did not fit there.
- At the tip, the
image:lines underk8s/pin nine distinct images. They are in Deployment, DaemonSet, CronJob and WorkflowTemplate objects. Nothing checks that these images exist. A wrong tag fails only when Argo CD syncs. - Image Updater manages the service image (
k8s/argocd/image-updater-values.yaml). The check must skip the images that theImageUpdaterobject lists.
Evidence
- On 2026-10-23,
docker buildx imagetools inspectwith an empty Docker configuration resolved each of the nine images. A missing tag (ollama/ollama:0.0.0-does-not-exist) exited 1 withnot found. docker buildxis on the runner image (Docker-Buildx 0.38.0) and in the devcontainer.release.ymlalready usesimagetools. Skopeo 1.13.3 is also on the runner image.- Five of the eight images that are not managed are on Docker Hub. The anonymous pull limit of Docker Hub counts manifest
GETrequests. Nobody measured whetherimagetools inspectsends aGET. devops cihas no trigger files for one check.CheckSpecinsrc/devops_cli/commands/ci.pyhas no path field, and the cache holds one fingerprint for the whole gate. A registry check indevops cithus asks the registries on each gate run, in the pre-push hook too.check_argocd_gatealready renders each Application on each pull request:test_this_repository_passes_the_argocd_gateruns it inTests & Coveragein about 1 s. This contradicts the premise of ci(k8s): the Argo CD build gate runs in devops ci on every change to k8s #1860.- The
dockerCLI is a faked edge with no shared fake and no contract suite yet (docs/TESTING.md, "Not yet").
Proposed remedy
- A job of
ci.yml, scoped likedocs-site: adorny/paths-filterstep onk8s/**andci.yml, withcontents: readandpull-requests: read. It is not a row ofdevops ci, so no local gate run reaches a registry. - The job runs a
devopscommand. The command renders each Application with the discovery ofcheck_argocd_gate, takes eachimagevalue from the rendered documents and skips the names that theImageUpdaterobject lists. - It resolves each image once with
docker buildx imagetools inspectand fails with the image, the Application and the registry. First, measure on the runner whether Docker Hub counts the request. Usekbldonly if it does better. - The tests use a shared fake of the
dockerCLI with a contract suite over recorded output, asdocs/TESTING.mdrequires.
Open questions
- Must the check also cover the images that Helm charts render?
check_argocd_gatedoes not render charts.
Proposed design
Problem statement
The image pins under k8s/ are not verified before a pull request merges. A wrong tag fails only when Argo CD syncs. A CI job must resolve each image in its registry before the merge, skipping the images that the ImageUpdater object manages.
Acceptance criteria
- Criterion 1: A job in
ci.ymltriggers on changes tok8s/**orci.yml.
Verification: Read thedorny/paths-filterstep of the job inci.yml. - Criterion 2: The job sets
contents: readandpull-requests: read.
Verification: Read thepermissions:block of the job inci.yml. - Criterion 3: The command renders each Application and lists each
imagevalue.
Verification: Run the command and confirm it lists the image values from the rendered Applications. - Criterion 4: The command skips images that the
ImageUpdaterobject lists.
Verification: Run the command and confirmghcr.io/dan-petty/devops-cli/service:latestis absent from the resolve list. - Criterion 5: The command resolves each image with
docker buildx imagetools inspect.
Verification: Run the command with a valid image. Confirm it exits 0. - Criterion 6: On failure, the command names the image, the Application, and the registry.
Verification: Run the command with an invalid image. Confirm the output names the image, Application, and registry. - Criterion 7: A shared fake of the
dockerCLI exists intests/support/fakes/.
Verification: Confirm the file exists and a test imports it. - Criterion 8: The fake has a contract suite over recorded output.
Verification: Run the contract suite tests. Confirm they pass.
Key questions
- Must the check also cover the images that Helm charts render?: No. The command renders Applications via
check_argocd_gatediscovery and extracts images from those rendered documents.check_argocd_gatedoes not render charts, so the check does not cover Helm chart images. (proposed)
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/k8sKubernetes commands, Helm charts, pods, services, and policiestype/testType test: a new or changed testvalue/mediumValue Medium
Type
Projects
- StatusShow more project fieldsReady
- StatusShow more project fieldsNew
Activity
feat(ci): a pull request that changes the docs builds the pages site,…
dan-petty commentedon Oct 24, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The change improves CI reliability but is not critical for immediate release.The change prevents runtime failures from invalid image tags in k8s manifests.Requires implementing a new job with docker buildx imagetools inspect and handling ImageUpdater exclusions.Both items work on k8s image resolution but the candidate checks images before merge while item 1860 runs the Argo CD gate in devops ci.dan-petty commentedon Oct 28, 2026
Status set to Ready at bb46660 (see proposed design in issue body).