Skip to content

chore(clustertool): migrate Helm SDK to v4 - #502

Merged
alfi0812 merged 6 commits into
trueforge-org:mainfrom
Boemeltrein:helm_v4
Sep 20, 2026
Merged

alfi0812 merged 6 commits into
trueforge-org:mainfrom
Boemeltrein:helm_v4

Conversation

@Boemeltrein

Copy link
Copy Markdown
Member

Description

Migrate ClusterTool's Helm SDK integration to Helm v4.3.0. The dependency was already present, but the implementation still used Helm v3.

  • Update SDK APIs and remove the unused Helm v3 dependency.
  • Use server-side apply for installations and auto for upgrades.
  • Use the Helm 4 status watcher when waiting for readiness, including bootstrap resume checks.
  • Keep hook-only waiting when wait=false.
  • Replace separate upgrade status polling with Helm's readiness handling and a 15-minute timeout.
  • Forward Helm logs through ClusterTool's configured log level, including debug output with LOGLEVEL=debug.

⚙️ Type of change

  • 🆕 New feature (Helm 4 integration and readiness watcher)
  • 🐛 Bugfix
  • 🔃 Chart Updates/Changes included with clustertool
  • 🔃 Refactor (internal changes, no functional impact)
  • ⚠️ Breaking change

🧪 How Has This Been Tested?

  • Run clustertool commands locally

  • Verified cluster bootstrap on Talos nodes

  • Checked generated configs are valid

  • Validated cluster state after changes

  • Passed go test ./pkg/fluxhandler ./pkg/gencmd ./cmd.

  • Updated existing resume and install-timeout tests for Helm 4, including watcher selection assertions.

  • Successfully completed bootstrap on a Talos test cluster, including Flux operator and Flux instance installation.

  • Confirmed server-side apply, watcher readiness completion and Helm debug logging in the output.

  • Verified resume preserves deployed releases. Deliberately interrupted installations required manual cleanup of pending releases before continuing.

📃 Notes:

The standalone upgrade path currently has no callers in ClusterTool's command flow. It compiles but has not been tested against a live cluster.

Existing pending/failed release handling and unsupported dry-run behavior remain unchanged. No chart, configuration template or CI changes are included.

Post-bootstrap validation confirmed that Flux reconciliation completed
successfully: all Kustomizations and HelmReleases reported Ready=True,
all Deployments, StatefulSets and DaemonSets reached their desired
replica counts, and all pods were running and ready. Flux successfully
upgraded the releases initially installed by ClusterTool to revision 2.

✔️ Checklist:

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

@alfi0812
alfi0812 merged commit d3bc705 into trueforge-org:main Sep 20, 2026
10 of 11 checks passed
@Boemeltrein
Boemeltrein deleted the helm_v4 branch September 28, 2026 07:59
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