Skip to content

chore(clustertool): centralize HelmRelease defaults - #606

Merged
Boemeltrein merged 3 commits into
mainfrom
refactor/helmrelease-defaults
Oct 24, 2026
Merged

Boemeltrein merged 3 commits into
mainfrom
refactor/helmrelease-defaults

Conversation

@Boemeltrein

@Boemeltrein Boemeltrein commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Description

The included HelmReleases repeat shared operational settings, making consistent configuration harder to maintain. These settings can be applied centrally through Flux patches.

Solution

  • Add shared HelmRelease policies through flux-entry, inherited by child Kustomizations.
  • Configure CreateReplace for CRDs, RetryOnFailure for installation, and RemediateOnFailure with two retries for upgrades.
  • Enable cleanup on failed upgrades and rollbacks.
  • Apply drift detection in warn mode through a separate patch.
  • Allow releases to opt out of shared policies or drift detection independently using labels.
  • Set all 23 HelmRelease reconciliation intervals to 1h.
  • Remove explicit chart intervals so they inherit the HelmRelease interval.
  • Remove redundant per-release settings and use Flux defaults for the remaining options.
  • Replace the global DefaultToRetryOnFailure feature gate with explicit per-release strategies.
  • Set the Flux distribution artifact reconciliation interval to 1h.

⚙️ 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?

  • Run clustertool commands locally

  • Verified cluster bootstrap on Talos nodes

  • Checked generated configs are valid through offline Kustomize rendering

  • Validated cluster state after changes

  • Passed go test ./pkg/fluxhandler ./pkg/initfiles.

  • Validated all 23 HelmReleases across 92 rendered policy and opt-out combinations.

  • Verified inherited SOPS configuration, substitutions and resource names are preserved.

  • Verified chart intervals are omitted and all HelmRelease intervals remain 1h.

  • Passed git diff --check.

Live cluster validation is pending.

📃 Notes:

This intentionally standardizes Flux behavior. Removed overrides for timeout, history, namespace creation, install remediation and uninstall history now use Flux defaults.

The distribution artifact interval controls checks for Flux's own distribution manifests and is separate from Git synchronization.

✔️ Checklist:

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

@trueforge-bot

trueforge-bot Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

🚀 HelmRelease CI Report

Overall Status

Stage Result
🔍 Detect HelmReleases success
🧪 Helm Tests success

🧪 HelmReleases Tested

embed/generic/kubernetes/apps/librespeed/app/helm-release.yaml
embed/generic/kubernetes/core/blocky/app/helm-release.yaml
embed/generic/kubernetes/core/metallb-config/app/helm-release.yaml
embed/generic/kubernetes/flux-system/flux-operator/app/helm-release.yaml
embed/generic/kubernetes/kube-system/kubelet-csr-approver/app/helm-release.yaml
embed/generic/kubernetes/kube-system/metrics-server/app/helm-release.yaml
embed/generic/kubernetes/kube-system/node-feature-discovery/app/helm-release.yaml
embed/generic/kubernetes/networking/nginx-external/app/helm-release.yaml
embed/generic/kubernetes/networking/nginx-internal/app/helm-release.yaml
embed/generic/kubernetes/observability/headlamp/app/helm-release.yaml
embed/generic/kubernetes/observability/kube-prometheus-stack/app/helm-release.yaml
embed/generic/kubernetes/system/cert-manager/app/helm-release.yaml
embed/generic/kubernetes/system/cloudnative-pg/app/helm-release.yaml
embed/generic/kubernetes/system/kubernetes-reflector/app/helm-release.yaml
embed/generic/kubernetes/system/metallb/app/helm-release.yaml
embed/generic/kubernetes/system/openebs/app/helm-release.yaml
embed/generic/kubernetes/system/snapshot-controller/app/helm-release.yaml
embed/generic/kubernetes/system/volsync/app/helm-release.yaml


⏭️ HelmReleases Skipped

embed/generic/kubernetes/core/clusterissuer/app/helm-release.yaml
embed/generic/kubernetes/flux-system/flux-instance/app/helm-release.yaml
embed/generic/kubernetes/kube-system/cilium/app/helm-release.yaml
embed/generic/kubernetes/system/longhorn/app/helm-release.yaml


Result

✅ All HelmRelease tests passed

@Boemeltrein
Boemeltrein marked this pull request as ready for review October 24, 2026 20:54
@Boemeltrein
Boemeltrein merged commit ff0192d into main Oct 24, 2026
61 of 67 checks passed
@Boemeltrein
Boemeltrein deleted the refactor/helmrelease-defaults branch October 24, 2026 20:54
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