Skip to content

refactor(k8s): delete the environment files from devops-cli - #7317

Merged
dan-petty merged 5 commits into
mainfrom
refactor/7290-delete-environment
Nov 26, 2026
Merged

dan-petty merged 5 commits into
mainfrom
refactor/7290-delete-environment

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The environment of the cluster lives only in dan-petty/homelab, where Argo CD reads it since the repository switch. This deletes the dead copy from devops-cli, so no person or agent can edit a file that deploys nothing. devops-cli keeps its product base k8s/devops.

Behavior changes:

  • A command over the environment tree takes it from --k8s-dir or infra.repos, and fails when a path that it reads is missing. The Secret table has no fixture fallback.
  • The charts gate row and the freeze check are gone. A new check refuses an environment file under k8s/.
  • repos onboard refuses a stale or dirty environment checkout.
  • k8s bootstrap-mattermost takes --k8s-dir.

The owner waived the 7 day wait of step 17 on 2026-11-26, so the repository switch can no longer be reverted.

Closes #7290

Change: openspec/changes/archive/2026-11-26-7290-delete-environment/

@dan-petty dan-petty added type/refactor Type refactor: a new structure, same behavior scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 26, 2026
Comment thread tests/k8s/test_k8s_catalog.py Fixed
@dan-petty

Copy link
Copy Markdown
Owner Author

Notes for the review. The change folder is in the diff at openspec/changes/archive/2026-11-26-7290-delete-environment/; a diff of this size hides it from the readiness check.

Live cluster. Shared check 7 of docs/HOMELAB_REPO_SWITCH.md passed on 2026-11-26: Argo CD reads only k8s/devops and k8s/devops/monitoring/prometheus-rules-values.yaml from this repository, with no comparison error and no paused Application.

Coverage that leaves this repository. The checks of the environment files are deleted here. dan-petty/homelab#324 lists the ones that it does not have yet. No check refuses a wrong OTEL_EXPORTER_OTLP_ENDPOINT in a manifest any more; k8s/devops sets none.

After the merge. The commands over the environment tree, run from this repository, read the infra.repos checkout. Nothing checks that it is current (#7295).

Related. #7214 keeps one open requirement; see the comment there. #4576 needs a plan update before a build. Follow-ups: #7313, #7314, #7315, #7316.

@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: 2be070f9cea6c42126c572840ff4621d5b46f73c

Check Conclusion Link
Upload Scan SARIF success run
Tests & Coverage success run
Changed-Test Independence success run
devops-cli success run
zizmor success run
trivy-config success run
Service Image Tests (shard 4 of 6) success run
Service Image Tests (shard 3 of 6) success run
Service Image Tests (shard 5 of 6) success run
Service Image Tests (shard 2 of 6) success run
Service Image Tests (shard 6 of 6) success run
Service Image Tests (shard 1 of 6) success run
Trivy success run
Plan Check skipped run
CodeQL success run
Tests on Main skipped run
Test Job Duration skipped run
Dependency Freshness skipped run
Fail-to-Pass Check skipped run
Changed-Test Independence (run 2 of 3) success run
Docs Site Build success run
Changed-Test Independence (run 1 of 3) success run
Tests & Coverage (shard 4 of 5) success run
Static Analysis success run
Tests & Coverage (shard 1 of 5) success run
Service Image success run
Tests & Coverage (shard 3 of 5) success run
Tests & Coverage (shard 5 of 5) success run
Changed-Test Independence (run 3 of 3) success run
Tests & Coverage (shard 2 of 5) success run
Design Tokens success run
Runner Image success run
DevContainer Image success run
Third-Party Image Scan (crawl4ai) success run
Image Pins success run
Service Image Build success run
Semantic PR title success run
Analyze (python) success run
Analyze (actions) success run

Skipped check: Plan Check
Skipped check: Tests on Main
Skipped check: Test Job Duration
Skipped check: Dependency Freshness
Skipped check: Fail-to-Pass Check

@dan-petty
dan-petty marked this pull request as ready for review November 26, 2026 17:11
@dan-petty
dan-petty merged commit 66cb933 into main Nov 26, 2026
39 checks passed
@dan-petty
dan-petty deleted the refactor/7290-delete-environment branch November 26, 2026 17:23
dan-petty-release Bot added a commit that referenced this pull request Nov 26, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.223.0](v0.222.0...v0.223.0)
(2026-11-26)


### Features

* **roadmap:** keep alternatives results in a brain index
([#7320](#7320))
([ef01e07](ef01e07))
* **roadmap:** link reference implementations in each checked item
([#7306](#7306))
([15bc4af](15bc4af))


### Code Refactoring

* **k8s:** delete the environment files from devops-cli
([#7317](#7317))
([66cb933](66cb933)),
closes [#7290](#7290)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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/refactor Type refactor: a new structure, same behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(k8s): delete the environment files from devops-cli

2 participants