Skip to content

Document digest field for OCI chart dependencies#2115

Open
promptless-for-oss wants to merge 3 commits into
helm:mainfrom
Promptless:promptless/document-oci-dependency-digest
Open

Document digest field for OCI chart dependencies#2115
promptless-for-oss wants to merge 3 commits into
helm:mainfrom
Promptless:promptless/document-oci-dependency-digest

Conversation

@promptless-for-oss
Copy link
Copy Markdown
Contributor

Open this suggestion in Promptless to view citations and reasoning process

Adds documentation for the new digest field in Chart.yaml dependencies, which enables specifying SHA256 digests for OCI-based chart dependencies. This provides immutable references for reproducible builds and supply chain security.

Trigger Events


Tip: See how your feedback shapes Promptless in Agent Knowledge Base 🧠

Document the new digest field for Chart.yaml dependencies, which allows
specifying SHA256 digests for OCI-based chart dependencies instead of
relying on mutable version tags.

Signed-off-by: promptless[bot] <promptless[bot]@users.noreply.github.com>
```
This will fetch `oci://localhost:5000/myrepo/mychart:2.7.0` when `dependency update` is executed.

### Specifying dependencies with digest
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added the digest field documentation based on PR #32142 which adds OCI digest tracking support for Helm v4 dependencies. The PR adds a Digest field to internal/chart/v3/dependency.go and modifies pkg/downloader/manager.go to construct URLs with @sha256: when a digest is specified.

Source: helm/helm#32142

Comment thread docs/topics/charts.mdx
- name: The name of the chart (nginx)
version: The version of the chart ("1.2.3")
repository: (optional) The repository URL ("https://example.com/charts") or alias ("@repo-name")
digest: (optional) The SHA256 digest for OCI dependencies, used instead of version tag for immutable references
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added digest field to the Chart.yaml dependency documentation based on PR #32142 which adds the Digest field to the v3 chart schema in internal/chart/v3/dependency.go.

Source: helm/helm#32142

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.

1 participant