Skip to content

Feat #1596: Support OCI chart digest notation (@sha256:) in chart references - #1848

Open
dennismdejong wants to merge 1 commit into
hashicorp:mainfrom
dennismdejong:feat/1596-chart-digest
Open

Feat #1596: Support OCI chart digest notation (@sha256:) in chart references#1848
dennismdejong wants to merge 1 commit into
hashicorp:mainfrom
dennismdejong:feat/1596-chart-digest

Conversation

@dennismdejong

Copy link
Copy Markdown

Description

Helm supports installing charts by OCI digest (e.g., oci://registry-1.docker.io/bitnamicharts/postgresql@sha256:...), but the provider rejected it with invalid tag errors.

Changes

  • Added chartDigest() helper function to detect @sha256: digest notation in chart references
  • Modified chartPathOptions() in the release resource to detect digest references, keep them in the chart URL instead of cpo.Version, and skip setting cpo.Version when a digest is used
  • Modified chartPathOptionsModel() in the template data source with the same logic
  • Both functions handle two cases:
    1. Digest embedded in the chart reference itself (oci://registry/repo/chart@sha256:abc)
    2. Digest specified in the version field (sha256:abc)

Closes #1596

@dennismdejong
dennismdejong requested review from a team, iam404 and rigalGit as code owners July 27, 2026 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

helm_release by digest

1 participant