Skip to content

feat(clustertool): apply bootstrap CRDs before Cilium - #734

Merged
Boemeltrein merged 2 commits into
mainfrom
codex/bootstrap-crds-before-cilium
Nov 12, 2026
Merged

Boemeltrein merged 2 commits into
mainfrom
codex/bootstrap-crds-before-cilium

Conversation

@Boemeltrein

Copy link
Copy Markdown
Member

Description

Bootstrap currently applies configured CRDs after the fixed base charts.
This change separates bootstrap into two ordered phases:

  • bootstrap.crd: HelmRelease names whose CRDs are applied before Cilium.
  • bootstrap.steps: chart and manifest entries executed after the fixed
    base charts, node readiness, namespace creation and health checks.

The HelmRelease index is built once and reused across both phases.
Empty lists remain supported, chart wait settings are preserved, and
validation errors retain their original YAML line numbers.

The configuration template, CLI help and how-to are updated. Short comments
clarify the bootstrap phases. Ordinary configuration applies do not execute
either bootstrap list.

⚙️ 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 locally on Windows:
go test ./pkg/clusterconfig ./pkg/gencmd ./pkg/helmhandler ./pkg/fluxhandler ./pkg/talosconfig ./pkg/initfiles ./cmd

Tests cover configuration parsing, empty and missing bootstrap configuration,
source line numbers, step order, wait settings and stopping on errors.
The embedded configuration template is loaded with test values.

git diff --check passed. A live Talos bootstrap remains to be tested:
start a new test cluster and confirm CRD application precedes Cilium,
followed by the configured chart and manifest steps.

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

📃 Notes:

Existing configurations must move CRD names into bootstrap.crd and
chart/manifest entries into bootstrap.steps. The previous flat list is
no longer accepted. To skip both lists, use:
bootstrap: {crd: [], steps: []}.

🤖 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):

@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

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

@trueforge-bot

trueforge-bot Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

🚀 HelmRelease CI Report

Overall Status

Stage Result
🔍 Detect HelmReleases success
🧪 Helm Tests success

🧪 HelmReleases Tested

embed/generic/kubernetes/apps/kube-system/kubelet-csr-approver/app/helm-release.yaml
embed/generic/kubernetes/apps/networking/blocky/app/helm-release.yaml
embed/generic/kubernetes/apps/other/librespeed/app/helm-release.yaml
embed/generic/kubernetes/apps/system/kubernetes-reflector/app/helm-release.yaml
embed/generic/kubernetes/apps/system/metallb-config/app/helm-release.yaml
embed/generic/kubernetes/apps/system/snapshot-controller/app/helm-release.yaml
embed/generic/kubernetes/apps/system/volsync/app/helm-release.yaml


⏭️ HelmReleases Skipped

embed/generic/kubernetes/apps/system/clusterissuer/app/helm-release.yaml


Result

✅ All HelmRelease tests passed

@Boemeltrein
Boemeltrein marked this pull request as ready for review November 12, 2026 18:18
@Boemeltrein
Boemeltrein merged commit 5a2756f into main Nov 12, 2026
17 of 18 checks passed
@Boemeltrein
Boemeltrein deleted the codex/bootstrap-crds-before-cilium branch November 12, 2026 18:18
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