Repository navigation
feat(clustertool)!: adopt the single-cluster repository layout - #669
Boemeltrein merged 7 commits into
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 Testedembed/generic/kubernetes/apps/core/blocky/app/helm-release.yaml ⏭️ HelmReleases Skippedembed/generic/kubernetes/apps/core/clusterissuer/app/helm-release.yaml Result✅ All HelmRelease tests passed |
* 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
Description
Generated repositories still use the
clusters/main/directory layer after removal of the cluster selector. This change introduces the agreed single-cluster layout for new installations and updates its consumers.talos/, rename inactive examples toexample-patches/, and keep Talos ignore rules intalos/.gitignore.kubernetes/config/,kubernetes/repositories/andkubernetes/flux-entry/.kubernetes/apps/, preserving existing groups and app/jobs/plans boundaries. Move LibreSpeed toother/librespeed/.cluster-secrets.sops.yamland its Kubernetes Secret tocluster-secrets.kubernetes/apps/flux-system/sops-age.sops.yamland apply it during bootstrap before installing Flux. Keep the Git deploy-key location unchanged.genkstokubernetes/apps/while retaining its existing generation rules.The three Flux entry resources retain their dependencies, decryption, substitution, shared defaults and opt-outs. Flux remains optional.
⚙️ Type of change
🧪 How Has This Been Tested?
Passed on Windows:
go test ./cmd ./pkg/initfiles ./pkg/fluxhandler ./pkg/sopsgenks,kustomizations,checkcryptandprecommit.genkspreserves existingks.yamlfiles, leaves files outside apps unchanged, and excludes the age-key Secret from Flux resources.git diff --check.The layout test uses a dummy existing Talos identity. No live cluster operations were performed. Linux runtime testing and GitHub CI remain pending.
📃 Notes:
🤖 This PR is AI generated.
This draft targets
codex/single-cluster-structure.This layout is intended for new installations. Existing repositories are not migrated automatically; initialize a fresh repository to obtain the new structure.
Adding
clusterNametoclustertool.yamland changing Kubernetes API endpoint selection remain outside this change.✔️ Checklist:
feat(clustertool):fix(clustertool):chore(clustertool):