Skip to content

docs(k8s): move the product README sections to docs/CLUSTER.md - #5312

Merged
dan-petty merged 3 commits into
mainfrom
docs/5293-k8s-product-docs
Nov 13, 2026
Merged

dan-petty merged 3 commits into
mainfrom
docs/5293-k8s-product-docs

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The homelab environment moves to a private repository (#5120, plan step 3). k8s/README.md is an environment document, but 3 of its sections tell how the product works. This change moves "devops-cli in the cluster", "Image Pins" and "Service Image Updates" to the new page docs/CLUSTER.md, one heading level higher, so each anchor stays. "Agent sessions" stays in k8s/README.md, because k8s/agents/ goes to the environment repository. Each live reference now points to docs/CLUSTER.md: 21 alert descriptions and their promtool fixtures, the comments of 6 manifests, the documents, the tests and the implement-step route of k8s/**, which now gives "Image Pins" of docs/CLUSTER.md. The AGENTS.md row of the cluster links the page, and the docs site lists it in the Guides tab. Archived changes, CHANGELOG.md and recorded evaluation fixtures stay as records.

Closes #5293

Change: openspec/changes/archive/2026-11-13-5293-move-the-product-readme-sections-to/

@dan-petty dan-petty added type/docs Type docs: a change to the documents scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 13, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Evidence

Head 2662ea5d6, rebased on origin/main 58795b0a0.

Checks

  • uv run devops ci --check --only lint,format,typecheck,docs,openspec: all pass.
  • uv run devops ci test on the changed source files, the changed tests, tests/docs, tests/grafana, tests/core/test_renovate_config.py and tests/invariants/test_k8s_manifests.py: 5176 passed.
  • uv run --group docs devops docs site build --strict: 110 pages, no issues. docs/CLUSTER.md is in the Guides tab.
  • Anchor check of each Markdown link into k8s/README.md and docs/CLUSTER.md (archives, CHANGELOG.md and the evaluation fixtures excluded): 0 broken.
  • git grep census of the pointers from a file to a moved section (for example k8s/README.md, Roadmap service, README.md#crawl4ai): 0 live pointers on the branch.
  • Test first: the re-pointed tests failed before docs/CLUSTER.md existed (20 failed, 157 passed, run of the builder). A docs title does not start the Fail-to-Pass Check job.

Render diff (main against the branch)

  • kubectl kustomize gives the same bytes on both refs for k8s/devops, k8s/overlays/homelab/devops, k8s/monitoring, k8s/devops/crawl4ai, k8s/devops/searxng and k8s/devops/roadmap-service. The 6 manifests under k8s/devops/ change only comments.
  • k8s/devops/configmap.example.yaml: the manifest and its embedded devops-cli.yaml parse to the same data. ConfigMap devops-cli-config does not change.
  • Application prometheus: a parse of k8s/monitoring/prometheus-values.yaml on both refs differs only in 21 annotations.description values, and in each value only (k8s/README.md, ...) becomes (docs/CLUSTER.md, ...). Names, expressions, for values and labels do not change, so no alert state resets. The builder also compared helm template of chart prometheus 29.47.2: 69 rules on both refs, 21 changed descriptions.
  • Nothing was applied to the cluster by hand.

Review notes

  • Overlap with refactor(k8s): split the product dashboards and rules in place #5309 (refactor(k8s): split the product dashboards and rules in place #5292): it moves the product rule groups out of k8s/monitoring/prometheus-values.yaml and changes the specs roadmap-service-alerts and crawl4ai-alerts. The pull request that merges second must rebase. In the moved rules file, change (k8s/README.md, Roadmap service) and (k8s/README.md, Crawl4AI) to the docs/CLUSTER.md form, and merge both spec edits.
  • AGENTS.md is at 6,490 of 6,500 characters. To link docs/CLUSTER.md in the cluster row, the row uses the short link texts [k8s], [cluster] and [tf], and the roadmap row uses [roadmap].
  • "Agent sessions" stays in k8s/README.md, because the plan of feat(infra): manage infra repos with devops infra #5120 moves k8s/agents/ to the environment repository.
  • Three scenario titles of roadmap-service-alerts, one of crawl4ai-alerts and one of searxng-service still say "README". OpenSpec refuses a MODIFIED block that renames a scenario: MODIFIED "The Crawl4AI alerts have their own rule group" omits scenario(s) the current spec still has: "The group and the README".
  • The moved text keeps its old markdownlint findings (MD031, MD034, MD024). No CI row runs markdownlint.

Plan #5293 as the OpenSpec change 5293-move-the-product-readme-sections-to.
The tests that read the sections "devops-cli in the cluster", "Image Pins"
and "Service Image Updates" of k8s/README.md now read docs/CLUSTER.md. They
fail until the next commit moves the sections.
The sections "devops-cli in the cluster", "Image Pins" and "Service Image
Updates" tell how the product runs, but k8s/README.md is an environment
document that leaves this repository (#5120). docs/CLUSTER.md now holds them,
one heading level higher, so each anchor stays. "Agent sessions" stays in
k8s/README.md, because it tells about k8s/agents/.

Each live reference points to docs/CLUSTER.md: 21 alert descriptions and
their promtool fixtures, the comments of k8s/devops/, the documents, a
source comment and the tests. The step route of k8s/** gives "Image Pins"
of docs/CLUSTER.md, and the AGENTS.md row links it. The docs site lists the
page in the Guides tab.
@dan-petty
dan-petty force-pushed the docs/5293-k8s-product-docs branch from 2662ea5 to dac293a Compare November 13, 2026 01:46
@dan-petty

Copy link
Copy Markdown
Owner Author

Rebase on #5309

#5309 (#5292) merged first, and this branch had a conflict. Head dac293a42, on origin/main 6d11eb013.

What changed in the rebase:

  • k8s/monitoring/prometheus-values.yaml keeps the main side: the product rule groups are now in k8s/devops/monitoring/prometheus-rules-values.yaml. The 21 descriptions in that file now end with (docs/CLUSTER.md, Roadmap service) or (docs/CLUSTER.md, Crawl4AI).
  • refactor(k8s): split the product dashboards and rules in place #5309 changed two lines of the moved section (the rules file of "Roadmap service, Alerts" and of "Crawl4AI, Alerts"). docs/CLUSTER.md has those two edits.
  • Review fix: three file paths of the moved text started at k8s/, which is clear in k8s/README.md but not in docs/. They now start at the root of the repository: k8s/devops/monitoring/prometheus-rules-values.yaml (2 places), k8s/monitoring/k8s-monitoring-values.yaml and k8s/devops/roadmap-service/middleware.yaml.
  • The deltas of roadmap-service-alerts and crawl4ai-alerts now keep the rules file of refactor(k8s): split the product dashboards and rules in place #5309, so the archive does not revert it. I archived again with uv run devops openspec archive. The archived specs change only the pointers, the "Image Pins" route scenario and the SearXNG requirement name.

Checks after the rebase:

  • uv run devops ci --check --only lint,format,typecheck,docs,openspec: all pass.
  • uv run devops ci test on the changed files, tests/prometheus, tests/docs, tests/grafana, tests/commands/k8s and the other covering tests: 5676 passed.
  • uv run --group docs devops docs site build --strict: 110 pages, no issues. Anchor check: 0 broken.

Render diff against origin/main 6d11eb013:

  • kubectl kustomize gives the same bytes on both refs for k8s/devops, k8s/overlays/homelab/devops, k8s/monitoring, k8s/devops/crawl4ai, k8s/devops/searxng and k8s/devops/roadmap-service.
  • Application prometheus: helm template of chart prometheus 29.47.2 with its two value files (k8s/monitoring/prometheus-values.yaml, k8s/devops/monitoring/prometheus-rules-values.yaml) gives 69 rules on both refs, in alerting_rules.yml and devops_cli_alerting_rules.yml. A parse of each rule shows 21 changed rules, and in each one only annotations.description changes, from (k8s/README.md, ...) to (docs/CLUSTER.md, ...). No alert state resets.

@dan-petty
dan-petty marked this pull request as ready for review November 13, 2026 01:54
@dan-petty
dan-petty merged commit 1f4fd67 into main Nov 13, 2026
26 checks passed
@dan-petty
dan-petty deleted the docs/5293-k8s-product-docs branch November 13, 2026 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(k8s): move the product README sections to docs/

1 participant