Repository navigation
Description
Update 2026-11-26 (infra move): k8s/argo-workflows/ and k8s/argocd/ are in dan-petty/homelab now.
Here: the configurations fieldSpec, devops-cli-noop, the tests and checks of k8s/devops/, and RagIngestBehind in k8s/devops/monitoring/prometheus-rules-values.yaml. In homelab: the orphan glob (follow-up). The removal of devops-cli-version there is the homelab follow-up of #7141.
Conflict: #7141 moves devops-cli-version into k8s/devops/, and this item removes it. Decide one before a build.
Follow-up: dan-petty/homelab#269.
Problem or Motivation
The owner recorded the go verdict of ADR 0008 on #1535 on 2026-11-11. The roadmap jobs move onto Argo Workflows. Today:
- The controller watches only
argo-workflows(--namespaced, no managed namespace). The row pods need Secretdevops-cli, the stack perimeter and the MCP server, which are indevops. - A WorkflowTemplate in Application
devopsgets no image digest: the kustomize image override does not reachspec.templates[].container.image(liverag-ingestshows the untagged image). - CronWorkflow
rag-ingestuses the singularschedulefield (live.spec.schedule: */3 * * * *), which Argo v4.0 removed (https://argo-workflows.readthedocs.io/en/latest/upgrading/). It has never run. CronWorkflowinfra-drift(feat(infra): run drift in cluster and plan infra PRs #6977) has the same field (k8s/devops/cronworkflow-infra-drift.yaml:11). - The Argo CD orphan glob for Workflows is
devops-cli-version-*(projects.yamlofk8s/argocd/, which is in dan-petty/homelab now), so unit Workflows would show as orphans.
Proposed Solution & Architectural Design
The refine split of 2026-11-14 applies, with four changes (owner approval of 2026-11-21). This item stays one item. It is not a tracker.
#5289 is the first slice. It moves the controller to devops (--namespaced --managed-namespace devops, with its Role and RoleBinding in devops), sets workflowRestrictions.templateReferencing: Strict, adds the executor ServiceAccount argo-executor, and fixes the rag-ingest fields. It also gives the rag-ingest template executor.serviceAccountName: argo-executor and a retryStrategy for exit 75, and adds one egress rule to the API server on TCP 6443 for each Workflow pod in devops (label workflows.argoproj.io/workflow). This item adds no 6443 rule of its own.
This item keeps these parts:
k8s/devops/kustomization.yaml:configurations:with the fieldSpec{path: spec/templates[]/container/image, kind: WorkflowTemplate}.- WorkflowTemplate
devops-cli-noopindevops, withautomountServiceAccountToken: falseandexecutor.serviceAccountName: argo-executor. - A live test of the item mutex with a parameter name (
item-<repo>-<n>), with twodevops-cli-noopWorkflows. - Two measurements: does a mutex wait count toward the deadline, and does a mutex wait survive a controller restart. If a mutex with a parameter name fails, the result names a Valkey lease for each item.
- Remove the measurement template
devops-cli-version, and name the no-op check in the Measurement section ofk8s/README.md. - In dan-petty/homelab (dan-petty/homelab#269), not here: the Argo CD orphan glob for
argoproj.io/Workflowbecomesdevops-cli-*. - A test that refuses the removed fields
schedule,mutexand singularsemaphorein each manifest underk8s/. - A CI check that runs
argo linton each WorkflowTemplate and CronWorkflow underk8s/. - The
absent()branch ofRagIngestBehind: the alert fires when its freshness series is missing. - Kustomization coverage: a test finds each manifest under
k8s/devops/in a kustomization.
These parts moved to other items. Each of those items needs this item, so none of them is a dependency of this item:
- feat(k8s): let roadmap-service create Argo Workflows #6592: the Role of
roadmap-serviceonworkflows, the ValidatingAdmissionPolicy, ConfigMaproadmap-limits, and the owner live proof of 2026-11-13 as the App. - feat(k8s): run the stage job as a WorkflowTemplate #6594: WorkflowTemplate
roadmap-stagewith the item mutex, the semaphores,retryStrategy,activeDeadlineSeconds, and the unit names and labels. - feat(monitoring): alert on Argo Workflows in devops #6595: the alerts on Argo Workflows in
devops, the metric series budget, and the measurement of 100devops-cli-noopWorkflows. - feat(k8s): add the CI gate WorkflowTemplate #4691: the gate WorkflowTemplate
devops-ci-gateink8s/devops/, with a NetworkPolicy of its own.
Target Subsystem
Kubernetes & Minikube Automation (k8s/devops/; k8s/argo-workflows/ and k8s/argocd/ are in dan-petty/homelab).
Existing Tool Considered
Argo Workflows features only (managed namespace, mutex, semaphore, retryStrategy, template restrictions). Cluster mode and a copy of Secret devops-cli in argo-workflows are the two options of ADR 0008; the managed namespace needs neither. Cost: about 240,000 tokens and 8 hours to build (140,000 for the engine, 100,000 for the names and labels), about 10,000 tokens a month to keep (chart bumps), about 20,000 tokens to fix.
Acceptance Criteria
Each as a devops k8s check, not a live pytest:
- A no-op WorkflowTemplate
devops-cli-noopindevopsruns toSucceededwith the release digest. - The main container of
devops-cli-noophas no service account token, and gets 401 or 403 at the API server. - Two
devops-cli-noopWorkflows of one item with the mutexitem-<repo>-<n>do not run at the same time on the live controller. - For a Workflow that waits for a mutex, the result states if the wait counts toward its deadline, and if the wait keeps its place across a controller restart.
- A queued Workflow under
Strictstarts the template spec of its creation or of its start; the result is stated. - Argo CD shows no orphan warning for the
devops-cli-*Workflows (after dan-petty/homelab#269). - The removed-field test fails on a fixture with a removed field and passes on
k8s/. - The
argo lintcheck fails on a fixture with an unknown field and passes onk8s/. - A
promtooltest:RagIngestBehindfires when its freshness series is missing.
Dependencies
- fix(k8s): the Argo controller manages namespace devops for rag-ingest #5289 (the first slice: the controller in
devops, the executor,Strictand therag-ingestfields).
Source: #4517
Alternatives check of 2026-11-25: in-use.
The repository already uses this tool.
Tool: argoproj/argo-workflows (https://github.com/argoproj/argo-workflows), Apache-2.0, last activity 2026-11-25, maintained.
Reason: Searches found the Argo Workflows engine the issue already names and uses; it supplies the managed namespace, template mutex and semaphore, retryStrategy and Strict template referencing, so the item adds only configuration, checks and monitoring glue.
Covers:
- Controller with --managed-namespace devops and namespaced Role
- Template-level mutex and semaphore with parameter names
- retryStrategy and activeDeadlineSeconds on templates
- workflowRestrictions templateReferencing Strict
- Executor serviceAccountName and automountServiceAccountToken on pods
Lacks:
- Removed-field check for schedule, mutex and singular semaphore
- CI wiring that runs argo lint on each template
- Kustomization coverage test for k8s/devops manifests
- Prometheus absent() branch of RagIngestBehind
- Argo CD orphan glob change to devops-cli-*
Owner decision 2026-11-13
The approved pipeline split (tracker #5482, Phase 4) uses one mutex for each item, item-<repo>-<n>, for every job of the item. Add a live test of a mutex with a parameter name. If it fails, use a Valkey lease for each item. Semaphores in roadmap-limits: agent 2, research 1, triage 1 and steward 1. No PriorityClass.
- Live proof: after the merge, two Workflows of one item run as the App, and the second waits for the mutex. A comment gives the Workflow names and the times.
Proposed design
Problem statement
The roadmap jobs must run as Argo Workflows in namespace devops. #5289 moves the controller, adds the executor and fixes the rag-ingest fields. This item adds the kustomize fieldSpec for template images, WorkflowTemplate devops-cli-noop, the Measurement section entry and the absent() branch of RagIngestBehind. The Argo CD orphan glob and the removal of devops-cli-version are follow-ups outside this item. The Argo Workflows manifest gate checks are deferred to a new issue.
Acceptance criteria
Requirement: Template image fieldSpec
The kustomization k8s/devops/kustomization.yaml MUST add a configurations entry whose fieldSpec names path spec/templates[]/container/image and kind WorkflowTemplate.
Scenario: Rendered template image digest
- WHEN
uv run devops ci --check --only k8srendersk8s/devopswith the release digest. - THEN The rendered
devops-cli-nooptemplate image ends with the release digest and not with the tag alone.
Requirement: No-op template identity
WorkflowTemplate devops-cli-noop in namespace devops MUST set automountServiceAccountToken: false and executor.serviceAccountName: argo-executor in its spec, and MUST be a resource of k8s/devops/kustomization.yaml.
Scenario: Rendered no-op template
- WHEN
uv run devops ci --check --only k8srendersk8s/devops. - THEN The rendered
devops-cli-noopspec setsautomountServiceAccountToken: falseandexecutor.serviceAccountName: argo-executor, and the kustomization lists the template.
Requirement: Measurement section names no-op check
The Measurement section of k8s/README.md MUST name WorkflowTemplate devops-cli-noop as the no-op check.
Scenario: Docs row
- WHEN
uv run devops ci --check --only docsruns on the repository. - THEN The docs row passes and the Measurement section contains
devops-cli-noop.
Requirement: RAG alert on absent series
The RagIngestBehind alert MUST fire when devops_cli_rag_ingest_last_success_timestamp_seconds has no series.
Scenario: No freshness series
- WHEN
promtool test rulesevaluates a case with nodevops_cli_rag_ingest_last_success_timestamp_secondsseries. - THEN The
RagIngestBehindrule produces an alert.
Requirement: Pending a person after the merge
After the merge, a person MUST record the live proof of the no-op template, the item mutex and the measurements in a comment on the issue.
Scenario: Owner live proof and measurements
- WHEN The owner submits
devops-cli-noopand two Workflows of one item with the mutexitem-<repo>-<n>, holds the mutex and restarts the controller during a wait, and changes the template during a wait. - THEN The no-op Workflow ends
Succeededwith the release digest, its main container gets 401 or 403 from the API server, the second Workflow waits for the first, and the comment holds the Workflow names and times, the deadline and restart answers, and the template spec that the queued Workflow started.
Existing Tool Considered
The alternatives check in the issue body records verdict in-use for argoproj/argo-workflows (https://github.com/argoproj/argo-workflows), Apache-2.0, maintained. The block lists what the tool covers and lacks. This item supplies the configurations fieldSpec, WorkflowTemplate devops-cli-noop, the Measurement section entry and the absent() branch. The removed-field check, the argo lint wiring and the kustomization coverage test are deferred to a new issue. The orphan glob is a follow-up in dan-petty/homelab#269. The item writes no engine code.
Key questions
- Which kustomize fieldSpec lets the release digest reach a WorkflowTemplate image in
devops?: Add aconfigurationsentry ink8s/devops/kustomization.yamlwith a fieldSpec for pathspec/templates[]/container/imageand kindWorkflowTemplate. Theimagesentry of Applicationdevopsthen reaches each template image. (best practice) [sources: k8s/devops/kustomization.yaml, k8s/devops/workflowtemplate-rag-ingest.yaml]- Chosen: Kustomize fieldSpec. The Application
imagestransformer reaches the template image through the fieldSpec. - Rejected: Image Updater. Image Updater acts on Applications, not on template fields.
- Rejected: Untagged image. It leaves the template unpinned.
- Chosen: Kustomize fieldSpec. The Application
- Which template and identity does the no-op measurement use?: Add WorkflowTemplate
devops-cli-noopindevopswithautomountServiceAccountToken: falseandexecutor.serviceAccountName: argo-executor. The executor ServiceAccountargo-executorcomes from fix(k8s): the Argo controller manages namespace devops for rag-ingest #5289. (best practice) [sources: k8s/devops/kustomization.yaml, k8s/devops/workflowtemplate-rag-ingest.yaml, docs/adr/0008-argo-workflows-run-the-roadmap-jobs-after-a-measured-go.md]- Chosen: New
devops-cli-nooptemplate. It measures the no-op path and uses the narrow executor identity. - Rejected: Keep
devops-cli-version. The version template is the homelab follow-up and is not part of this item. - Rejected: No-op with the default service account. The main container would mount a token, and the executor would lose its narrow identity.
- Chosen: New
- Should
RagIngestBehindfire when its freshness series is absent?: Add anabsent()branch toRagIngestBehind, asClusterMetricsMissinguses. Add apromtoolcase with no freshness series. (best practice) [sources: k8s/devops/monitoring/prometheus-rules-values.yaml, tests/infra/test_nodes.py]- Chosen: Add an absent-series branch. The rule fires when the metric has no series, as
ClusterMetricsMissingdoes. - Rejected: Leave the rule as it is. With no series the expression gives no result, so the alert cannot fire.
- Rejected: Rely on a manual check. No alert tells a person.
- Chosen: Add an absent-series branch. The rule fires when the metric has no series, as
- Which mutex and semaphore values bound the roadmap Workflows, and does a priority order apply?: Use one mutex for each item,
item-<repo>-<n>, for every job of the item. Set the semaphoresagent2,research1,triage1 andsteward1 in ConfigMaproadmap-limitsof feat(k8s): let roadmap-service create Argo Workflows #6592. Add no PriorityClass. This item tests the parameter mutex on the live controller. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md, docs/adr/0008-argo-workflows-run-the-roadmap-jobs-after-a-measured-go.md]- Chosen: Owner values of 2026-11-13. The owner recorded the per-item mutex, the four semaphore values and no PriorityClass.
- Rejected: PriorityClass for the fix units. The owner decision of 2026-11-13 refuses a PriorityClass.
- Rejected: Higher semaphore values. No capacity measurement supports them.
- How does this item handle the conflict with build(k8s): move workflowtemplate-version.yaml into the product base #7141 over
devops-cli-version?: This item removes nodevops-cli-versiontemplate. build(k8s): move workflowtemplate-version.yaml into the product base #7141 owns the move of that template intok8s/devops/, and its homelab follow-up owns the removal. This item adds onlydevops-cli-noop. (best practice) [sources: k8s/devops/kustomization.yaml]- Chosen: Leave the removal out. build(k8s): move workflowtemplate-version.yaml into the product base #7141 and its homelab follow-up own the move and the removal, and
k8s/devops/holds no such template now. - Rejected: Remove it here. It conflicts with build(k8s): move workflowtemplate-version.yaml into the product base #7141, which moves the template into
k8s/devops/. - Rejected: Wait for build(k8s): move workflowtemplate-version.yaml into the product base #7141. This item needs no such template.
- Chosen: Leave the removal out. build(k8s): move workflowtemplate-version.yaml into the product base #7141 and its homelab follow-up own the move and the removal, and
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(k8s)scope of the title gives the scope.The go verdict is recorded and the plan is fully specified, but no user is blocked today.This is the core runtime path for all roadmap jobs and the RAG ingest lane.The body lists at least ten distinct components and estimates 8 hours and 240,000 tokens to build.Both target Argo Workflows in the devops namespace, but #1535 delivered the controller install and go/no-go verdict while this candidate migrates the roadmap pods onto it.devops-cli-service commentedon Nov 11, 2026
The proposal at 4330ee4 needs splitting into 3 items. A person splits the item into the items below, or replies in a comment or edits the body to keep one item, and the next refine round looks at the item again.
create,get,listanddeleteonworkflowsto its Role, the ValidatingAdmissionPolicy that admits only aworkflowTemplateRefnamedroadmap-*andarguments, and ConfigMaproadmap-limitswithagent2 andtriage2; it needs this item.roadmap-stagewith the template-level mutexstage-<owner>.<name>-<n>, semaphoreagent,retryStrategy(exit 75, limit 2, 30 s, factor 2) andactiveDeadlineSeconds, and the unit names and labels of ADR 0022; it needs feat(roadmap): label Service Jobs by repository and item #4558, feat(roadmap): run each stage item in its own Job #4559 and this item.up == 0, failed-Workflow and Pending-queue-age alerts, the OTLP series budget, and the API-server and series measurement; it needs "feat(monitoring): record the shared roadmap Service selectors" and this item.dan-petty commentedon Nov 11, 2026
Scope from the project brain plan (2026-11-11)
The project brain plan #4624 folds one fix into this item (child 6 of that plan). The brain CronWorkflows
brain-dailyandbrain-weekly(#4687, #4693) depend on this item.Problem:
k8s/devops/workflowtemplate-rag-ingest.yaml:11-13usessynchronization.mutex, andk8s/devops/cronworkflow-rag-ingest.yaml:10usesschedule. Argo Workflows v4.0 removed both (Argo Workflows upgrade notes). ADR 0021 plans only thescheduleschange. CronWorkflowrag-ingesthas nolastScheduledTimeand 0 Workflows (measured).Added scope:
mutextomutexesin therag-ingesttemplate, in addition to thescheduleschange that this item already holds.schedule,mutexandsemaphorein the singular) in any manifest underk8s/.Added acceptance criteria:
k8s/.kubectl get cronworkflow rag-ingest -n devopsshows alastScheduledTime.The dependencies do not change: #4527, #4533, #4558, #4559. This item stays a child of #4517.
dan-petty commentedon Nov 11, 2026
Scope from the iteration lane plan (2026-11-11)
This issue stays a child of #4517. It is also child 17 of #4667. The scope adds:
devops-default-perimeter. After the move, the default perimeter would let test code reach the gateway, Valkey and OTel.devops-cli-*.Acceptance added:
devops.Depends on: #4691.
dan-petty commentedon Nov 11, 2026
Evidence: the RAG ingest lane has never run, and no alert shows it (2026-11-11)
A standards inventory found this problem again. I confirmed it with read-only
kubectlreads and Prometheus queries.k8s/devops/cronworkflow-rag-ingest.yaml:5puts CronWorkflowrag-ingestin namespacedevops.k8s/argo-workflows/values.yaml:26setssingleNamespace: true. The live controller runs with--namespacedand with no--managed-namespace, so it watches onlyargo-workflows.rag-ingestexists since 2026-11-08T20:34Z. It has nostatus.lastScheduledTime. No namespace has a Workflow.devops_cli_rag_ingest_last_success_timestamp_secondsin its 30 days of retention.RagIngestBehind(k8s/monitoring/prometheus-values.yaml:1073) istime() - max by (repo) (devops_cli_rag_ingest_last_success_timestamp_seconds) > 360. With no series, the expression gives no result, so the alert cannot fire. The lane does not run, and no alert tells a person.Proposed addition to the acceptance criteria:
ClusterMetricsMissingdoes withabsent(...). A test of the rule shows that it fires with no series.kubectl -n devops get cronworkflow rag-ingestshows alastScheduledTime, and the success metric has one series for each indexed repository.Related: #4135 and #3949 verify the schedule and the index. They cannot pass before this item.
devops-cli-service commentedon Nov 12, 2026
The proposal at c3130a3 needs splitting into 4 items. A person splits the item into the items below, or replies in a comment or edits the body to keep one item, and the next refine round looks at the item again.
create,get,listanddeleteonworkflowsto its Role, the ValidatingAdmissionPolicy that admits only aworkflowTemplateRefnamedroadmap-*andarguments, and ConfigMaproadmap-limitswithagent2 andtriage2; it needs this item.roadmap-stagewith the template-level mutexstage-<owner>.<name>-<n>, semaphoreagent,retryStrategy(exit 75, limit 2, 30 s, factor 2) andactiveDeadlineSeconds, and the unit names and labels of ADR 0022; it needs feat(roadmap): label Service Jobs by repository and item #4558, feat(roadmap): run each stage item in its own Job #4559 and this item.devops-default-perimeter, and add the gate perimeter test; it needs feat(k8s): add the CI gate WorkflowTemplate #4691 and this item.up == 0, failed-Workflow and Pending-queue-age alerts, the absent-seriesRagIngestBehindrule, the OTLP series budget, and the API-server and series measurement; it needs "feat(monitoring): record the shared roadmap Service selectors" and this item.dan-petty commentedon Nov 12, 2026
Scope from the cluster integration plan (2026-11-12)
The cluster integration plan #4989 gives this item one more part: rank 12, a schedule guard for CronWorkflows. This issue stays a child of #4517.
customResourceStatefor the argoproj.io CronWorkflow:telemetryServices.kube-state-metrics.customResourceStatein k8s-monitoring 4.5.2. KSM 8.4.2 makes the ClusterRole rule throughrbac.customResourceState.createClusterRoleRules.lastScheduledTimenewer than 2 periods.The failed-Workflow and RAG absent-series alerts stay with this issue and #4577.
Why: the controller metrics count only what the controller watches. So a CronWorkflow outside its scope never runs and gives no signal.
rag-ingestwas created on 2026-11-08 and was never scheduled. The guard reads the Kubernetes object, so it covers each future CronWorkflow (#4821, #4809, #3908, #4574). This issue suspendsrag-ingest, so the guard has no target until a second schedule exists. If this part makes the item too large, file it after this item merges.52 remaining items
feat(k8s): let Argo Workflows run roadmap pods in devops
chore(main): release 0.260.0 (#7877)
devops-cli-service commentedon Nov 30, 2026
Released in v0.260.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.260.0
devops-cli-service commentedon Nov 30, 2026
Live since 2026-11-30 20:54 UTC