Repository navigation
fix(clustertool): block init in the previous native Talos layout - #683
Merged
Boemeltrein merged 1 commit 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
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
The initialization guard detects older Talhelper configurations but misses repositories using
clusters/main/talos/clustertool.yaml. Runninginitthere could create the new single-cluster layout alongside the existing configuration.Add this path to the existing guard so initialization stops before decryption or repository generation, including when
RUNAGAINexists. Generalize the error message to cover both legacy layouts. Retainhelper.ClusterNameand the existing Talhelper checks.⚙️ Type of change
🧪 How Has This Been Tested?
Passed locally on Windows:
go test ./cmd ./pkg/initfiles -count=1Extended CLI subprocess tests verify the new path is rejected with and without
RUNAGAIN, before decryption, while preserving the existing configuration file.Existing legacy detection and initialization confirmation tests.
git diff --check.Run clustertool commands locally
Verified cluster bootstrap on Talos nodes
Checked generated configs are valid
Validated cluster state after changes
📃 Notes:
Targets
codex/single-cluster-structure.This change detects the previous layout; it does not migrate existing repositories. No live cluster operations were performed.
🤖 This PR is AI generated.
✔️ Checklist:
feat(clustertool):fix(clustertool):chore(clustertool):