Skip to content

fix: migrate helm v3 -> v4#1363

Merged
emoskito merged 3 commits intomainfrom
fix/migrate-to-helm-v4
Apr 3, 2026
Merged

fix: migrate helm v3 -> v4#1363
emoskito merged 3 commits intomainfrom
fix/migrate-to-helm-v4

Conversation

@emoskito
Copy link
Copy Markdown
Contributor

@emoskito emoskito commented Apr 2, 2026

Description

Migrate direct helm imports from v3 to v4. helm/v3 remains as an indirect dependency via Zarf. Removed stale helm v3 ld flags. These changes are consistent with Zarf's recent changes in v0.74.0 release which included migration to helm v4. The github.com/zarf-dev/zarf/src/cmd.helmVersion ldflag had to be injected externally from uds-cli but is now baked into the module itself with v4.

Related Issue

Fixes #

Relates to #

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Other (security config, docs update, etc)

Checklist before merging

@emoskito emoskito changed the title Fix/migrate to helm v4 fix: migrate to helm v4 Apr 2, 2026
@emoskito emoskito changed the title fix: migrate to helm v4 fix: migrate to helm v3->v4 Apr 2, 2026
@emoskito emoskito changed the title fix: migrate to helm v3->v4 fix: migrate to helm v3 -> v4 Apr 2, 2026
@emoskito emoskito changed the title fix: migrate to helm v3 -> v4 fix: migrate helm v3 -> v4 Apr 2, 2026
@emoskito emoskito requested a review from brandtkeller April 2, 2026 18:36
Copy link
Copy Markdown
Member

@brandtkeller brandtkeller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts provided for the helm ldflag.

Comment thread .github/workflows/release.yaml
@emoskito emoskito requested a review from brandtkeller April 2, 2026 21:17
@emoskito emoskito marked this pull request as ready for review April 2, 2026 22:17
@emoskito emoskito requested a review from a team as a code owner April 2, 2026 22:17
Copy link
Copy Markdown
Member

@brandtkeller brandtkeller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes look correct - build flags look coordinated across task/workflow/goreleaser config. lgtm.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Migrates UDS CLI’s direct Helm dependency and related build/test wiring from Helm v3 to Helm v4, aligning version detection and ldflag injection with the newer Helm/Zarf integration described in the PR.

Changes:

  • Update module/version lookups and E2E expectations from helm.sh/helm/v3 to helm.sh/helm/v4.
  • Replace Helm v3 Go imports with Helm v4 equivalents (including values file parsing).
  • Update build/release ldflags to remove Helm v3 k8s-version flags and inject the Helm v4 version symbol instead.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tasks.yaml Uses Helm v4 for version discovery and updates build ldflags to Helm v4’s version symbol.
src/test/e2e/zarf_test.go Updates tool version validation to query helm.sh/helm/v4.
src/pkg/bundle/overrides.go Migrates Helm imports for values/getter to v4.
src/pkg/bundle/deploy_test.go Migrates Helm values import to v4 in tests.
src/pkg/bundle/create.go Switches values file parsing from Helm v3 chartutil to Helm v4 chart common reader.
go.mod Removes direct Helm v3 requirement; keeps it as an indirect dependency while using Helm v4 directly.
.goreleaser.yaml Updates ldflags to inject Helm v4 version symbol; removes Helm v3 k8s-version ldflags.
.github/workflows/release.yaml Updates release workflow env var to pull Helm v4 module version.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

@joelmccoy joelmccoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@emoskito emoskito merged commit 60ba614 into main Apr 3, 2026
24 checks passed
@emoskito emoskito deleted the fix/migrate-to-helm-v4 branch April 3, 2026 15:51
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.

4 participants