Skip to content

fix(clustertool): select bootstrap control plane automatically - #603

Merged
alfi0812 merged 2 commits into
mainfrom
fix/automatic-bootstrap-node
Oct 24, 2026
Merged

alfi0812 merged 2 commits into
mainfrom
fix/automatic-bootstrap-node

Conversation

@Boemeltrein

@Boemeltrein Boemeltrein commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Description

Reported feedback

Having bootstrapNode in clustertool.yaml strikes me as unneeded config fluff. If all control-plane nodes are not present, fail/panic as something ain't right, otherwise pick at random or use the first/only control-plane for bootstrap.

Solution

  • Remove bootstrapNode from the inventory, configuration template and documentation.
  • Automatically select the alphabetically first control-plane by node name, using the existing inventory sort.
  • Use the existing Bootstrap() method throughout the bootstrap procedure so all steps select the same node.
  • Keep the existing control-plane availability checks and the requirement for at least one control-plane.
  • Update CLI help and existing tests.

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

Passed:

go test ./pkg/talosconfig ./pkg/gencmd ./pkg/initfiles ./cmd

Updated tests cover:

  • Automatic selection when control-planes are listed out of alphabetical order.
  • Selection by node name rather than IP address.
  • Rejection of inventories without a control-plane.
  • Rejection of the removed bootstrapNode field.
  • Bootstrap endpoint and resume behavior.

Formatting and git diff --check passed.

Live Talos bootstrap testing done:

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

📃 Notes:

The configuration version remains clustertool/v1.

Existing beta configurations must remove the bootstrapNode: entry because the field is no longer accepted.

✔️ Checklist:

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

@trueforge-bot

trueforge-bot Bot commented Oct 24, 2026

Copy link
Copy Markdown

🚀 HelmRelease CI Report

Overall Status

Stage Result
🔍 Detect HelmReleases success
🧪 Helm Tests skipped

🧪 HelmReleases Tested


⏭️ HelmReleases Skipped


Result

ℹ️ No HelmReleases required testing

@Boemeltrein Boemeltrein mentioned this pull request Oct 24, 2026
@Boemeltrein
Boemeltrein marked this pull request as ready for review October 24, 2026 15:35
@alfi0812
alfi0812 merged commit c6993d9 into main Oct 24, 2026
9 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