Repository navigation
Description
Split from #5296.
Problem: dan-petty/homelab has only .github/workflows/lint.yml (make lint). No job runs the environment checks, and #5134 step 6 (plan step 17) deletes them from devops-cli. The product commands that this item adds resolve the environment tree from --k8s-dir or kubernetes.dir, so a homelab workflow can run them, but the workflow files live in homelab. Why deferred: the pull request of this item changes devops-cli only, and dan-petty/homelab#23 (the copy, plan step 9) must land before the checks run on the real tree. Acceptance criteria: a homelab workflow runs each environment check command on each pull request and reports each result; each homelab workflow has a path filter, so no workflow runs at a devops-cli release; no ruleset, branch protection or other setting makes a check required, and a failed check blocks no merge and no apply; Renovate makes the version bumps of the check tools, with the k8s managers that this item takes out of devops-cli's .github/renovate.json; .pre-commit-config.yaml holds the pre-commit-hooks hook no-commit-to-branch with --branch main.
Proposed design
Problem statement
The homelab repository has no CI job for the environment checks, and devops-cli's Renovate config still reads the moved k8s tree. The workflow, path filters, advisory setting and pre-commit hook live in dan-petty/homelab, so this change keeps only the Renovate managers that read the devops-cli product base k8s/devops/ and defers the homelab files.
Acceptance criteria
Requirement: Kubernetes managers read only the product base
The kubernetes, argocd, helm-values and k8s custom.regex managers in .github/renovate.json SHALL read only files under k8s/devops/.
Scenario: The manager patterns exclude the moved tree
- WHEN a person runs
jq -e '[.kubernetes.managerFilePatterns[], .argocd.managerFilePatterns[], .["helm-values"].managerFilePatterns[], (.customManagers[] | select(.customType == "regex") | .managerFilePatterns[] | select(startswith("/^k8s/")))] | all(startswith("/^k8s/devops/"))' .github/renovate.json - THEN the command prints
true
Requirement: The Renovate config validates
The .github/renovate.json file MUST pass the Renovate config validator.
Scenario: The validator accepts the narrowed config
- WHEN a person runs
npx --yes renovate-config-validator .github/renovate.json - THEN the command exits 0
Existing Tool Considered
No alternatives check has run. Renovate covers the manager change in .github/renovate.json; it reads only the config of the repository that it runs on, so the homelab config needs its own copy, which is deferred. The change builds no code, so it pays no build cost.
Key questions
- Which k8s managers should devops-cli's
.github/renovate.jsonkeep?: Keep only thekubernetes,argocd,helm-valuesand k8scustom.regexmanagers whosemanagerFilePatternsreadk8s/devops/. (best practice) [sources: .github/renovate.json:12, .github/renovate.json:33, .github/renovate.json:57, docs/adr/0027-dependency-updates-come-from-self-hosted-renovate.md:36]- Chosen: Narrow each k8s manager to
k8s/devops/. The product base is the only k8s tree that devops-cli ships; the homelab tree moves to its own repository. - Rejected: Keep the managers at
/^k8s/. They would read the moved homelab tree and duplicate the homelab config. - Rejected: Remove the k8s managers. devops-cli still ships
k8s/devops/, so it needs updates for that tree.
- Chosen: Narrow each k8s manager to
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 17, 2026
homelab, and .github/labels.yml declares no scope/homelab label. Add the label to the file to give the scope to this item.Both run environment checks in homelab CI, but #5296 is the umbrella and the candidate is one split that adds path filters, Renovate bumps, and a no-commit-to-branch hook.devops-cli-service commentedon Nov 18, 2026
Owner question: How should the environment checks stay non-required? (a person decides)
Options
Recommendation: Decide the question: only a person can answer it.
Evidence
devops-cli-service commentedon Nov 21, 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
devops-cli-service commentedon Nov 22, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
dan-petty commentedon Nov 26, 2026
Closed: homelab CI runs the environment checks.
dan-petty/homelab
.github/workflows/k8s.ymlruns themake k8s-*checks with a path filter. The workflows are advisory,.pre-commit-config.yamlhasno-commit-to-branch --branch main, and Renovate there uses the shared presets of dan-petty/infra. The removal of the environment managers from devops-cli Renovate is part of step 17 (#7290).