Repository navigation
Description
Problem
Checked at devops-cli main 4ff4b7c.
k8s/devops/renovate/(CronJob, ConfigMap, PVC and NetworkPolicy in namespacedevops) runs Renovate for each repository of the owner (ADR 0027). It serves every repository, so by ADR 0032 (docs(adr): record the four homes of the infrastructure #6674) it is not a devops-cli template. Only homelab runs it, so it becomes a homelab instance with no infra template (dan-petty/homelab#95).- The CronJob gets its GitHub token from an init container that runs the product image
ghcr.io/dan-petty/devops-cli/servicewithgh app-token --app renovate --write /token/github-token(cronjob.yaml:111-114). The command stays in the product; dan-petty/homelab#95 keeps the init container. - Readers:
k8s/devops/kustomization.yaml; deploy-stack applies the 4 files (src/devops_cli/commands/k8s/stack_lifecycle.py:335-338,PRODUCT_MANIFESTS_BY_STACK['devops']);tests/gate/k8s_checks/renovate.py(value checks of the manifests);tests/invariants/test_k8s_renovate.py(the form of the manifests, listed indocs/TESTING.md:99);src/devops_cli/k8s/renovate_token.pyandtests/k8s/test_renovate_token.py(no product reader, only the gate check);openspec/specs/renovate-service/spec.md;docs/CLUSTER.md; ADR 0027. - PVC
renovate-cachehasPrune=false,Delete=false(pvc.yaml:8,14), so Application devops does not prune it. - Owner rule of 2026-11-16 (test(k8s): Drop the tests that repeat third-party version pins #6060): no test asserts a value of a manifest or config.
- Open items name
k8s/devops/renovate: chore(k8s): measure the first Renovate runs in the cluster #4909, feat(monitoring): export outdated dependencies from Renovate #4911, feat(deps): Validate the Renovate config in devops ci #6090, dan-petty/homelab#366, dan-petty/homelab#367, chore(k8s): count the Renovate pushes of the first full week #6129, fix(security): Judge KSV-0109 in k8s/devops/renovate/configmap.yaml #6503 and fix(security): Judge KSV-0109 in k8s/devops/renovate/configmap.yaml #6608. - Until dan-petty/homelab#38, the homelab copy checks refuse an Application name that the copy does not have (homelab
scripts/k8s-checks.py:186-191), so dan-petty/homelab#95 can merge only after homelab#38.
Proposed remedy
- Remove
k8s/devops/renovate/and its kustomization entry, and the 4 paths ofPRODUCT_MANIFESTS_BY_STACK. Application devops prunes the CronJob, the ConfigMap and the NetworkPolicy when it syncs this revision. PVCrenovate-cacheand the token Secret stay; dan-petty/homelab#95 adopts the claim. - Delete
tests/gate/k8s_checks/renovate.py,tests/invariants/test_k8s_renovate.py,src/devops_cli/k8s/renovate_token.pyandtests/k8s/test_renovate_token.py. dan-petty/homelab#95 checks its render with open validators only. Updatedocs/TESTING.md,docs/CLUSTER.mdand the spec; docs(adr): record the four homes of the infrastructure #6674 amends ADR 0027. - Comment on each open item above with its new home (dan-petty/homelab#95).
Acceptance criteria
-
git ls-files k8s/devops/renovate src/devops_cli/k8s/renovate_token.py tests/invariants/test_k8s_renovate.py tests/gate/k8s_checks/renovate.py | wc -lprints 0, anduv run devops ci --check --only test,k8s,kube-linter,docs,openspecpasses. - After the sync of
devops,kubectl -n devops get cronjob renovatereturns NotFound, andkubectl -n devops get pvc renovate-cache -o nameand the token Secret (-o nameonly) still exist.
Person steps
- Merge dan-petty/homelab#95 right after Application devops syncs this change, so Renovate stops for less than one run interval (2 hours). The agent marks dan-petty/homelab#95 ready at the same time.
Dependencies
- docs(adr): record the four homes of the infrastructure #6674, refactor(renovate): take the shared preset from infra #6676, feat(argocd): read the environment from the homelab repo #5134 (plan step 12), dan-petty/homelab#38.
Alternatives check of 2026-11-21: not-applicable.
Class: refactor, no search.
Tool: none found.
Proposed design
Problem statement
Remove the self-hosted Renovate from the product, and keep PVC renovate-cache and Secret renovate for dan-petty/homelab#95 to adopt. ADR 0032 makes the workload a homelab instance, not a devops-cli template. The change removes the four manifests, their kustomization entry, their four stack paths, the gate check, the token module, the support helper and the manifest tests. It moves the test of the kept cluster secret row to the mirror folder. The holds are dependencies #6674, #6676 and #5134, and the merge of dan-petty/homelab#95 right after the sync.
Acceptance criteria
Requirement: The Renovate files leave the product
The repository SHALL hold no manifest of the self-hosted Renovate and no product module, gate check, support helper or test that reads it.
Scenario: The paths are absent
- WHEN A person runs git ls-files k8s/devops/renovate src/devops_cli/k8s/renovate_token.py tests/gate/k8s_checks/renovate.py tests/invariants/test_k8s_renovate.py tests/support/renovate.py
- THEN The command prints no path.
Requirement: The devops stack names no Renovate path
PRODUCT_MANIFESTS_BY_STACK['devops'] SHALL hold no path under k8s/devops/renovate.
Scenario: The stack list
- WHEN A person runs uv run devops ci test tests/commands/k8s/test_k8s_devops_stack.py
- THEN The test passes and asserts that the list of stack devops holds no path with renovate.
Requirement: The kustomization and the k8s check
k8s/devops/kustomization.yaml SHALL list no renovate resource, and the k8s check SHALL pass on the remaining stack.
Scenario: The k8s check
- WHEN A person runs uv run devops ci --check --only k8s,kube-linter
- THEN The check passes, because the kustomization lists no resource that the tree does not hold.
Requirement: The kept claim and Secret
After Application devops syncs the revision, CronJob renovate SHALL be gone, and PVC renovate-cache and Secret renovate SHALL remain.
Scenario: The sync of the devops Application
- WHEN A person runs kubectl -n devops get cronjob renovate and kubectl -n devops get pvc renovate-cache -o name and kubectl -n devops get secret renovate -o name
- THEN The first command reports NotFound, and the second and third print persistentvolumeclaim/renovate-cache and secret/renovate.
Requirement: The spec keeps the secret row and drops the workload
The change SHALL remove each renovate-service requirement that describes the CronJob, ConfigMap, PVC, NetworkPolicy and the shared preset, and SHALL keep the requirement of the cluster secret row.
Scenario: The openspec check
- WHEN A person runs uv run devops ci --check --only openspec
- THEN The check passes.
Requirement: The docs drop the product workload
docs/CLUSTER.md and docs/TESTING.md SHALL name no path of the self-hosted Renovate and no test of it.
Scenario: The docs check
- WHEN A person runs git grep -n 'k8s/devops/renovate' docs/CLUSTER.md docs/TESTING.md and git grep -n 'test_k8s_renovate' docs/TESTING.md
- THEN Both commands print no line.
Requirement: The cluster secret row keeps its test
The repository SHALL keep a test of the devops/renovate row of the cluster secret table in the folder that mirrors its package.
Scenario: The moved test
- WHEN A person runs uv run devops ci test tests/k8s/test_cluster_secrets.py
- THEN The test passes and asserts the three keys, their setting and keyring sources, and the optional-feature class of the row.
Requirement: Each open item names its new home
Each open item that names k8s/devops/renovate SHALL get a comment that names dan-petty/homelab#95.
Scenario: The comments on the open items
- WHEN A person runs uv run devops gh issue view 4909 --json comments and the same command for feat(monitoring): export outdated dependencies from Renovate #4911, feat(deps): Validate the Renovate config in devops ci #6090, dan-petty/homelab#366, dan-petty/homelab#367, chore(k8s): count the Renovate pushes of the first full week #6129, fix(security): Judge KSV-0109 in k8s/devops/renovate/configmap.yaml #6503 and fix(security): Judge KSV-0109 in k8s/devops/renovate/configmap.yaml #6608
- THEN The latest comment of each issue names
dan-petty/homelab#95.
Existing Tool Considered
The alternatives check in the issue body gives not-applicable (refactor, no search) and names no tool. No open tool or library covers the need, because the change removes a workload from the product and builds no code. It has no build cost. The cost is the removal of the four manifests, the gate check, the token module, the support helper and the manifest tests, and the update of docs/CLUSTER.md, docs/TESTING.md and the renovate-service spec.
Key questions
- Which files read the Renovate manifests and must change?: The kustomization lists renovate; the devops stack list holds the four paths; the gate check, the invariant test, the support helper and the token module read the manifests or their config; docs/TESTING.md, docs/CLUSTER.md and the renovate-service spec name them. [sources: k8s/devops/kustomization.yaml, src/devops_cli/commands/k8s/stack_lifecycle.py:335, tests/gate/k8s_checks/renovate.py, tests/invariants/test_k8s_renovate.py, tests/support/renovate.py, src/devops_cli/k8s/renovate_token.py, docs/TESTING.md:99, docs/CLUSTER.md, openspec/specs/renovate-service/spec.md]
- Does the product keep the devops/renovate cluster secret row and the renovate. settings?*: Yes. The homelab init container runs the product image gh app-token --app renovate, so the product still writes the Secret and holds the settings. The change keeps the row test and moves it to the mirror folder. (best practice) [sources: k8s/devops/renovate/cronjob.yaml:111, src/devops_cli/k8s/cluster_secrets.py, tests/invariants/test_k8s_renovate.py, docs/TESTING.md]
- Chosen: Keep the row and the settings, and keep the row test. The homelab init container calls gh app-token --app renovate on the product image, so the product still writes the Secret and holds the settings.
- Rejected: Move the row and the settings to homelab. The product image reads the settings, and devops k8s push-secrets --stack devops writes the Secret.
- Rejected: Delete the row test with the manifest tests. The row is source code that stays, and rule test(k8s): Drop the tests that repeat third-party version pins #6060 covers manifest and config values only.
- What happens to tests/invariants/test_k8s_renovate.py?: Delete the node config test and the doc-text tests. Move the cluster secret row test to tests/k8s/test_cluster_secrets.py, the folder that mirrors src/devops_cli/k8s/. (best practice) [sources: tests/invariants/test_k8s_renovate.py, docs/TESTING.md]
- Chosen: Delete the manifest and doc tests, and move the row test to the mirror. The manifest and doc tests go with the workload; the row test asserts source code that stays.
- Rejected: Delete the whole file. The row stays, so its test must stay.
- Rejected: Keep the whole file. Two tests assert manifest values, which rule test(k8s): Drop the tests that repeat third-party version pins #6060 forbids.
- Where does the PVC renovate-cache manifest live after the change?: The product removes the manifest.
dan-petty/homelab#95declares the same claim, which stays in the cluster because it has Prune=false,Delete=false. (best practice) [sources: k8s/devops/renovate/pvc.yaml, k8s/devops/kustomization.yaml]- Chosen: Remove the manifest and let homelab#95 adopt the kept claim. The claim has Prune=false,Delete=false, so the product can drop the manifest with no deletion.
- Rejected: Keep the PVC manifest in the product. The workload is a homelab instance, and the product base holds no repository-specific workload.
- Rejected: Delete the claim. The cache holds data and the homelab run reuses it.
- How does the change remove the renovate-service requirements of the workload?: The change folder holds a spec delta with a REMOVED entry for each workload requirement and keeps the cluster secret row requirement. The archive writes the living spec; the change does not edit the spec by hand. (best practice) [sources: CONTEXT.md, openspec/specs/renovate-service/spec.md]
- Chosen: A spec delta with REMOVED entries. Only openspec archive writes a living spec, so the change records the removal in its delta.
- Rejected: Edit the living spec by hand. The project forbids it.
- Rejected: Keep the spec. The product no longer runs the capability.
- Who merges
dan-petty/homelab#95, and when?: A person mergesdan-petty/homelab#95right after Application devops syncs this change, and afterdan-petty/homelab#38merges. The agent marks homelab#95 ready at the same time. (a person decides)
Open questions
- Who merges
dan-petty/homelab#95, and when? (a person decides)
Fit
Fits in one pull request.
Suspected block
None.
Activity
dan-petty commentedon Nov 21, 2026
renovate, and .github/labels.yml declares no scope/renovate label. Add the label to the file to give the scope to this item.Both work on the same k8s/devops/renovate manifests, but dan-petty/devops-cli#4905 added them and this item removes them.devops-cli-service commentedon Nov 22, 2026
Owner question: See the first point of Open questions in the section Proposed design of the body.
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
[-]refactor(renovate): move self-hosted Renovate out of the product[/-][+]refactor(k8s): move self-hosted Renovate out of the product[/+]refactor(k8s): move self-hosted Renovate out of the product