Repository navigation
Description
Goal
Owner decision of 2026-11-19: the Jobs that change git (stage, implement and fix-checks) run in the devtools-based runner image. k8s/devops/cronjob-stage.yaml:87 uses ghcr.io/dan-petty/devops-cli/service today. The implement and fix-checks Jobs already use the runner template (cronjob-runner.yaml:53).
Change
- Switch the stage Job template to the runner image (devtools-based after build(docker): build the runner image FROM devtools with no tool install #4361).
- Allow it in
k8s/devops/roadmap-service/admissionpolicy.yamland in the image updater values. - Then measure whether the Service Deployment still needs gh and openspec. If not, a later item removes them from the service image.
- The change goes live through git and Argo CD, not through kubectl.
Renovate. None. The images keep their current tag and digest management (image updater and the kubernetes manager).
Risk. Medium. The runner image is larger than the service image, so the start time and memory of the stage pod change. A bad admission rule stops every stage Job, so roll it out with a single item first.
Proof
devops k8s run-job --template stageplans one Ready item in the runner image and pushes its branch.- The admission policy accepts the Job.
Depends on: #4361
Proposed design
Problem statement
The stage Job still runs the service image. The owner decided that stage, implement and fix-checks Jobs use the devtools-based runner image. This change switches the stage CronJob template and its admission rule to the runner image. It also updates the image updater values. The change reaches the cluster through Git and Argo CD.
Acceptance criteria
Requirement: Stage CronJob image
The stage CronJob template SHALL use image ghcr.io/dan-petty/devops-cli/runner.
Scenario: Stage template uses the runner image
- WHEN
uv run devops ci --check --only k8sruns - THEN the k8s check passes with the stage CronJob template on image
ghcr.io/dan-petty/devops-cli/runner.
Requirement: Stage Job admission
The admission policy MUST accept ghcr.io/dan-petty/devops-cli/runner for a stage Job and reject the service image for that Job.
Scenario: Admission policy accepts the stage runner image
- WHEN
uv run devops ci --check --only k8sruns - THEN the k8s check passes with the stage admission rule on the runner image.
Requirement: Stage image updater
The image updater values MUST track ghcr.io/dan-petty/devops-cli/runner for the stage Job template.
Scenario: Image updater tracks the stage runner image
- WHEN
uv run devops ci --check --only k8sruns - THEN the k8s check passes with the stage image updater entry on the runner repository.
Requirement: Stage Job proof
A stage Job created from the template MUST run its pod in the runner image and push the branch of one Ready item.
Scenario: Run one stage Job from the template
- WHEN
uv run devops k8s run-job --template stageruns for one Ready item - THEN it plans the item in a pod with image
ghcr.io/dan-petty/devops-cli/runnerand pushes the branch.
Existing Tool Considered
No alternatives check has run. Kubernetes CronJob, ValidatingAdmissionPolicy and Argo CD are open, maintained tools that cover this manifest change. The change builds no new code.
Key questions
- Which image should the stage CronJob template use?: Use
ghcr.io/dan-petty/devops-cli/runner, as the owner decided on 2026-11-19. The stage template usesghcr.io/dan-petty/devops-cli/servicetoday. (best practice) [sources: k8s/devops/cronjob-stage.yaml:87, k8s/devops/cronjob-runner.yaml:53]- Rejected: Service image. The owner decision changes the stage Job to the runner image.
- Chosen: Runner image. The owner decision names the devtools-based runner image for stage, implement and fix-checks Jobs.
- How should the admission policy change for a stage Job?: Change the stage branch of the image rule to allow
ghcr.io/dan-petty/devops-cli/runneralone or with a tag or digest, and update the refusal message. The runner branch already allows that image. (best practice) [sources: k8s/devops/roadmap-service/admissionpolicy.yaml, tests/gate/k8s_checks/job_admission_policy.py]- Rejected: Keep the service image for stage. It contradicts the owner decision and leaves the stage Job on the service image.
- Rejected: Allow both images for stage. It permits a stage Job to keep the service image, which the owner decision rejects.
- Chosen: Allow the runner image for stage. It matches the owner decision and the runner template.
- Which image repository should the image updater values track for the stage template?: Track
ghcr.io/dan-petty/devops-cli/runnerfor the stage template, because the stage Job now uses that image. (best practice) [sources: k8s/devops/cronjob-stage.yaml:87, k8s/devops/roadmap-service/admissionpolicy.yaml]- Rejected: Keep the service repository. It leaves the stage template on the service image and contradicts the owner decision.
- Chosen: Use the runner repository. It keeps the image updater on the image that the stage Job uses.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
Alternatives check of 2026-11-19: none.
Tool: none found.
Reason: Searches for per-workload image admission rules and Argo CD image updater returned only unrelated pages, no tool. The need is a repository-specific edit of the stage CronJob template, its ValidatingAdmissionPolicy rule and updater values, which no external tool covers.
Activity
dan-petty commentedon Nov 19, 2026
#5483 created the stage Job template using the service image; this candidate changes that same template to use the runner image.devops-cli-service commentedon Nov 19, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.
devops-cli-service commentedon Nov 19, 2026
The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.
Searches (4)
Searches run:
Sources:
fix(roadmap): bootstrap only the runner Jobs, after tier 1 (#6517)
feat(roadmap): bootstrap the dev env with uv in each Job (#6537)
chore(main): release 0.186.0 (#6580)
devops-cli-service commentedon Nov 21, 2026
Released in v0.186.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.186.0
devops-cli-service commentedon Nov 21, 2026
Live since 2026-11-21 02:17 UTC