Skip to content

refactor(clustertool): replace Talhelper with native Talos 1.14 configuration - #478

Merged
alfi0812 merged 47 commits into
trueforge-org:mainfrom
Boemeltrein:main
Sep 13, 2026
Merged

alfi0812 merged 47 commits into
trueforge-org:mainfrom
Boemeltrein:main

Conversation

@Boemeltrein

Copy link
Copy Markdown
Member

Description

Replace Talhelper with native Talos 1.14 configuration for single-node and multinode clusters.

  • Introduce talos/clustertool.yaml for versions, node roles, addresses and the bootstrap node.

  • Organize patches into shared, role and node directories, supporting separate network settings, disks and schematic IDs per node.

  • Generate and check all node configurations before applying them. Support targeted apply/upgrade, interrupted-bootstrap recovery and control-plane quorum checks.

  • Use explicit environment variables without automatic IP/CIDR splitting. Warn and request confirmation when the configured Talos major/minor version differs from bundled Talosctl.

  • Replace legacy kubelet mounts with directory-type user volumes. Align Longhorn and OpenEBS Helm values with /var/mnt/longhorn and /var/mnt/openebs.

  • Improve command error reporting and failure exit codes, retain chart-installation logging, and update Tuppr configuration.

  • Add Linux and Windows amd64 test archives with UTC build timestamps. Include a user guide in the initialized Talos directory and remove obsolete files.

  • Improve bootstrap recovery during node restarts, including brief certificate validity delays.

  • Fix the Windows Git pre-commit hook and SOPS path matching.

  • Use separate temporary directories for each Helm operation to prevent chart download conflicts on Windows.

Breaking changes

A fresh cluster bootstrap is strongly recommended; automatic migration is not provided. Existing repositories require the new configuration layout and matching storage values. Changing storage paths does not move existing data.

See the user guide for backup preparation, repository reuse and setup.

Verification

Go tests and native Talos configuration generation have been exercised, alongside operator testing of single-node/multinode bootstrap, adding control-plane and worker nodes, node-specific patches, schematic upgrades, and Longhorn/OpenEBS data persistence after pod replacement. This does not establish coverage of every live upgrade or recovery scenario.

Windows testing also confirmed bootstrap recovery, pre-commit hook execution and chart installation after the fixes.

Further Flux implementation is planned as a separate PR.

⚒️ Fixes #

⚙️ Type of change

  • 🆕 New feature (e.g., bootstrap, cluster config, or automation)
  • 🐛 Bugfix (e.g., node setup, config generation)
  • 🔃 Chart Updates/Changes included with clustertool
  • 🔃 Refactor (internal changes, no functional impact)
  • ⚠️ Breaking change (changes Talos cluster behavior)

🧪 How Has This Been Tested?

  • Run clustertool commands locally
  • Verified cluster bootstrap on Talos nodes
  • Checked generated configs are valid
  • Validated cluster state after changes

📃 Notes:

✔️ Checklist:

  • ⚖️ Followed project style and contribution guidelines
  • 👀 Self-reviewed my changes
  • 🧪 Documented testing steps
  • 🏷️ PR title follows convention:
    • feat(clustertool):
    • fix(clustertool):
    • chore(clustertool):

Please don't blindly check all the boxes. Read them and only check those that apply.
Those checkboxes are there for the reviewer to see what is this all about and
the status of this PR with a quick glance.

Boemeltrein and others added 30 commits September 5, 2026 23:28
Return initialization and SOPS errors to the command handler, preserve failure exit codes, and wait for deployed Helm releases without retrying failed installs blindly. Remove obsolete helpers and document native Talos acceptance results.
Restore step and file descriptions for Flux bootstrap, initialization and SOPS errors. Keep existing execution, retries and exit behavior unchanged.
Confirm matching checkpoints before resuming. Retry transient bootstrap transport errors within a bounded deadline, checking authenticated etcd membership before every attempt. Keep retry details at debug level and retain the final error on timeout.

Test recovery, lost responses, fatal errors, deadline handling and resume consent.
Compare the bundled CLI major/minor with clustertool.yaml. Warn and default to no on a mismatch; allow patch differences without prompting.
@alfi0812
alfi0812 merged commit 927a6c7 into trueforge-org:main Sep 13, 2026
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant