Skip to content

fix(clustertool): apply all node configurations before bootstrap - #575

Merged
alfi0812 merged 5 commits into
trueforge-org:mainfrom
Boemeltrein:fix/bootstrap-apply-all-nodes
Oct 20, 2026
Merged

alfi0812 merged 5 commits into
trueforge-org:mainfrom
Boemeltrein:fix/bootstrap-apply-all-nodes

Conversation

@Boemeltrein

@Boemeltrein Boemeltrein commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Description

Reported feedback

Initial clustertool talos apply can stall when bootstrap workloads require workers while the control-plane taint is retained. The feedback suggested configuring at least one worker before bootstrap, or applying all node configurations first.

Solution

  • Apply configurations to all inventory nodes in maintenance before etcd bootstrap and Helm readiness waits.
  • Preserve configurations already applied to booting or running nodes when resuming setup.
  • Stop before bootstrap if node inspection or configuration application fails.
  • Check full readiness of joining nodes after installing Cilium and the CSR approver.
  • Display a progress message before checking existing etcd membership, including the possible wait of 30 seconds per control-plane node.
  • Update CLI help and the setup guide to describe the new order.

Testing also exposed that the second init restored deliberately deleted base patches. Adjust initialization so:

  • The first run copies root/base files, creates RUNAGAIN, and pauses for configuration.
  • The continuation with RUNAGAIN skips root/base copying and completes initialization.
  • A later confirmed reinitialization fills in missing root/base and Kubernetes files.

⚒️ Fixes #
#573 -> 1

⚙️ 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?

Automated:

  • Existing and new pkg/gencmd tests passed, covering apply-before-bootstrap ordering, resume behavior, maintenance endpoints, and node failures.
  • go test ./pkg/initfiles ./cmd -skip '^TestCommandsStopOnDecryptError$' passed. The excluded existing test encounters a Windows cleanup error.
  • Formatting and git diff --check passed.

Manual Talos VM tests:

  • One control-plane and two workers with the control-plane taint retained: interrupted setup resumed successfully and the cluster became ready.

  • One worker deliberately powered off: setup stopped before bootstrap; powering it on allowed setup to resume successfully.

  • Three control-planes without workers, with control-plane scheduling enabled: an uninterrupted fresh bootstrap completed successfully, including Flux installation and subsequent cluster/Flux checks.

  • Verified the first init, continuation, and confirmed reinitialization flows.

  • 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 Boemeltrein changed the title fix(clustertool): apply all node configs before bootstrap fix(clustertool): apply all node configurations before bootstrap Oct 16, 2026
@Boemeltrein
Boemeltrein marked this pull request as ready for review October 16, 2026 08:51
@Boemeltrein Boemeltrein mentioned this pull request Oct 16, 2026
@alfi0812
alfi0812 merged commit 527980b into trueforge-org:main Oct 20, 2026
10 of 11 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