Skip to content

feat(clustertool)!: remove the cluster selector - #666

Merged
Boemeltrein merged 2 commits into
codex/single-cluster-structurefrom
codex/remove-multicluster
Nov 2, 2026
Merged

Boemeltrein merged 2 commits into
codex/single-cluster-structurefrom
codex/remove-multicluster

Conversation

@Boemeltrein

@Boemeltrein Boemeltrein commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

BREAKING CHANGE: ClusterTool no longer accepts the cluster selector and uses clusters/main. Existing initialization safeguards are retained.

Description

Remove the global --cluster selector as the first step toward one cluster per repository. ClusterTool now uses the existing clusters/main defaults.

Remove the flag registration and the early argument parsing and path reassignment from root.go. Update the CLI examples and documentation, and simplify the existing initialization tests to use the fixed default path.

Initialization safeguards remain intact, including rejecting legacy Talhelper configuration before decryption, with and without RUNAGAIN. The existing defaults in pkg/helper/vars.go are unchanged.

This PR targets codex/single-cluster-structure. Directory restructuring and the genks rewrite will be handled in separate PRs.

⚙️ 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 on Windows with Go 1.27.0:

  • go test -mod=readonly ./cmd ./pkg/helper ./pkg/initfiles ./pkg/talosconfig ./pkg/gencmd
  • Existing initialization tests cover legacy configuration rejection and confirmation before decryption.
  • Changed Go files were formatted with gofmt, preserving existing line endings.
  • git diff --check

The command tests exercise Cobra through subprocesses. Standalone CLI execution, Linux tests, the optional Talos generation integration test, and live cluster validation were not performed.

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

📃 Notes:

  • Breaking change: remove the --cluster option from ClusterTool invocations. Selecting other cluster directories is no longer supported.
  • The generated directory layout remains unchanged in this PR.
  • Talos argument restrictions and Headlamp's separate kubectl configuration remain unchanged.
  • No new dependencies.

🤖 This PR is AI generated.

✔️ Checklist:

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

BREAKING CHANGE: ClusterTool no longer accepts the cluster selector and uses clusters/main. Existing initialization safeguards are retained.
@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: ec6dae21-19cb-460b-98cb-9ad4707483e0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@trueforge-bot

trueforge-bot Bot commented Nov 1, 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 marked this pull request as draft November 1, 2026 20:43
@Boemeltrein
Boemeltrein marked this pull request as ready for review November 2, 2026 17:18
@Boemeltrein
Boemeltrein merged commit 85d9982 into codex/single-cluster-structure Nov 2, 2026
11 checks passed
@Boemeltrein
Boemeltrein deleted the codex/remove-multicluster branch November 2, 2026 17:20
Boemeltrein added a commit that referenced this pull request Nov 4, 2026
* feat(clustertool)!: remove the cluster selector (#666)

BREAKING CHANGE: ClusterTool no longer accepts the cluster selector and uses clusters/main. Existing initialization safeguards are retained.

* feat(clustertool)!: adopt the single-cluster repository layout (#669)

* feat(clustertool)!: adopt the single-cluster repository layout

* clean up

* apps move into sub folder

* fix: update HelmRelease paths to reflect new directory structure under 'apps'

* fix: simplify resource exclusion logic in kustomization.yaml processing

* refactor: replace ioutil with os package for file operations in kustomizations.go

* delete: remove repository_layout_test.go file

* feat(clustertool)!: read the Talos cluster name from configuration (#676)

* feat(clustertool)!: read the Talos cluster name from configuration

* feat(clustertool): rename file multinode to generate

* idem

* fix(clustertool): detect the previous native Talos layout during init (#683)

* fix(clustertool): set namespaces on Flux Kustomizations (#684)

* fix(clustertool): exclude age secret from generated Flux resources

* fix(clustertool): exclude age secret from generated Flux resources (#686)

* zucht
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