Post

Refactor talos: remove tracked .talos directory

Refactor talos: remove tracked .talos directory

The commit removes the .talos directory from tracked locations, consolidates patch references, and updates ignore files and scripts to use the new clusters/homelab/talos/patches layout, improving repository consistency and onboarding clarity.

Update ignore files and script paths

The commit modifies .dockerignore, .gitignore, and .openwikiignore to drop entries under .talos/ and adds a positive +/.talos/ rule, ensuring that temporary operator files are no longer tracked. Scripts such as scripts/ci/harbor-images-check.py, scripts/ci/platform-maintenance-test.py, scripts/ci/talos-harbor-mirrors-test.py, scripts/platform-maintenance.py, and scripts/talos-harbor-mirrors.py now reference clusters/homelab/talos/patches instead of .talos/patches. Documentation files like docs/kubernetes-1.34.11-maintenance-2026-09-07.md and openwiki/architecture/cluster-topology.md have been updated to reflect the new paths, keeping all tooling aligned with the revised layout.

Validate migration of patch references

Verification begins by running the updated CI tests that exercise harbor and talos patches; the path corrections in the scripts show that the migration has been applied. Manual inspection of the renamed yaml files (clusters/homelab/talos/patches/talos-*.yaml) confirms they are identical to the previous .talos versions and that no stray references remain. Executing a full pipeline after these changes ensures the ignore files prevent accidental inclusion of .talos artifacts during build and deployment.

Align documentation and onboarding

The onboarding guide (ONBOARDING.md) and agents documentation (AGENTS.md) now clarify that the .talos/ path holds private operator configuration while published patches reside in clusters/homelab/talos/patches. This separation helps new contributors understand where to place temporary files versus version‑controlled patches. The platform team can reuse this refactor pattern when consolidating other tracked directories, ensuring consistent ignore rules and path handling across the homelab.

This post is licensed under CC BY 4.0 by the author.