Skip to content

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

Description

@dan-petty

Problem or Motivation

Step 17 of docs/HOMELAB_REPO_SWITCH.md (tracker #5134). Argo CD reads the environment from dan-petty/homelab, but devops-cli still holds a copy. On 2026-11-26, 142 paths under k8s/ existed in both repositories and 84 of them differed. An agent or a person can read, edit or apply the stale copy, and CI checks both.

Owner, 2026-11-26: do step 17 now. This waives the condition of 7 days after step 11 with no revert, which ends on 2026-11-30. The owner's concern is duplicates and synchronization that cost performance and send agents to the wrong resources.

Read on 2026-11-26: 40 of 40 argocd app diff runs exit 0, no Application has a comparison error, and the only devops-cli paths that an Application reads are in the product folder k8s/devops.

Proposed Solution & Architectural Design

One pull request, as "Step 17" of the runbook gives:

  • Delete the environment files: the files of k8s outside k8s/devops, and the overlay k8s/overlays/homelab/devops.
  • Delete the environment Renovate rules, the environment tests, gate modules and fixtures, and the freeze check of step 12.
  • Point each OpenSpec spec and document that names a deleted path to the product folder or to dan-petty/homelab, or remove the statement.
  • Make AGENTS.md and k8s/README.md name dan-petty/homelab as the one place of the environment.
  • A command that needs the environment tree fails with an error that names the missing tree. It reads no fixture.
  • Record the waiver in the runbook.

Acceptance Criteria

  • Outside k8s/devops, k8s/ of devops-cli holds Markdown only.
  • No live Application source names a deleted path (shared check 7).
  • devops ci passes.
  • After the merge, each Application stays Synced.

Dependencies

#5296 is done. The revert of the switch is not possible after this change.

Alternatives check of 2026-11-26: not-applicable.
Class: refactor, no search.
Tool: none found.

Activity

  1. added
    type/refactor
    scope/k8s
    source/agent
    status/new
    value/medium
    effort/medium
    priority/p2-medium
    on Nov 26, 2026
  2. added
    owner/agent
    on Nov 26, 2026
  3. dan-petty commented on Nov 26, 2026

    @dan-petty
    OwnerAuthor

    Evidence for the priority of this step, from the review of the open plan pull requests on 2026-11-26:

    While the environment files are in this repository, the stage job reads them as product files and plans changes to them. After this step, the path gate of the stage job refuses a Changes: path that does not exist, so the fault ends with the files. No new plan gate is necessary if this step lands soon; the two plans above get their correction by hand.

  4. added
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 26, 2026
  5. removed
    status/in-review
    owner/agent
    on Nov 26, 2026
  6. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-26 18:50 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/k8ssource/agenttype/refactorvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions