Repository navigation
feat(clustertool)!: read the Talos cluster name from configuration - #676
Merged
Boemeltrein merged 3 commits intoNov 4, 2026
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
🚀 HelmRelease CI ReportOverall Status
🧪 HelmReleases Tested⏭️ HelmReleases SkippedResultℹ️ No HelmReleases required testing |
|
|
Boemeltrein
marked this pull request as ready for review
November 4, 2026 17:55
Boemeltrein
merged commit Nov 4, 2026
67b0343
into
codex/single-cluster-structure
10 of 11 checks passed
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Talos configuration generation currently uses the hardcoded cluster name
main. Read the name from a requiredclusterNamefield intalos/clustertool.yaml, withmainsupplied in the template.Use this value for generated machine configurations and the Talos client context. At startup, display the configured name or
<not configured>without requiring a complete, valid inventory.Remove automatic
CLUSTERNAMEenvironment injection. Retainhelper.ClusterNamewith a comment explaining its remaining use in the unchanged legacy layout checks.⚙️ Type of change
🧪 How Has This Been Tested?
Validated locally on Windows:
Full Go test suite with
TALOSCTL_INTEGRATION=1; rerancmdandpkg/talosconfigtests after the startup logging adjustment.Real local Talos generation with
clusterName: homelab, checking the generated cluster name and client context.Rejection of missing, empty and whitespace-only names.
Existing apply/bootstrap command tests and legacy initialization checks.
infoand--helpthrough the CLI test process with configured, missing, empty and malformed configuration; each displayed one startup name message and exited successfully.git diff --check.Run clustertool commands locally
Verified cluster bootstrap on Talos nodes
Checked generated configs are valid
Validated cluster state after changes
📃 Notes:
Configuration files without
clusterNamemust add the field before generation or apply. New installations receiveclusterName: mainfrom the template.No live cluster actions were performed.
🤖 This PR is AI generated.
✔️ Checklist:
feat(clustertool):fix(clustertool):chore(clustertool):