-
Notifications
You must be signed in to change notification settings - Fork 615
Document digest field for OCI chart dependencies #2115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
89bea27
abb0701
6c2d5ac
335ff22
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -185,14 +185,34 @@ Dependencies of a chart can be pulled from a registry using the `dependency upda | |
|
|
||
| The `repository` for a given entry in `Chart.yaml` is specified as the registry reference without the basename: | ||
|
|
||
| ``` | ||
| ```yaml | ||
| dependencies: | ||
| - name: mychart | ||
| version: "2.7.0" | ||
| repository: "oci://localhost:5000/myrepo" | ||
| ``` | ||
| This will fetch `oci://localhost:5000/myrepo/mychart:2.7.0` when `dependency update` is executed. | ||
|
|
||
| ### Specifying dependencies with digest | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added the Source: helm/helm#32142 |
||
|
|
||
| You can specify a SHA256 digest instead of relying on version tags. Digests are immutable, so they provide stronger guarantees that you get the exact chart artifact you expect. When a `digest` is specified, Helm fetches the dependency using the digest rather than the version tag: | ||
|
|
||
| ```yaml | ||
| dependencies: | ||
| - name: mychart | ||
| version: "2.7.0" | ||
| repository: "oci://localhost:5000/myrepo" | ||
| digest: "sha256:ec5f08ee7be8b557cd1fc5ae1a0ac985e8538da7c93f51a51eff4b277509a723" | ||
| ``` | ||
|
|
||
| This will fetch `oci://localhost:5000/myrepo/mychart@sha256:ec5f08ee7be8b557cd1fc5ae1a0ac985e8538da7c93f51a51eff4b277509a723` when `dependency update` is executed. | ||
|
|
||
| Because digests are immutable, they are useful for: | ||
|
|
||
| - **Reproducible builds**: The same dependency content is used across different environments | ||
| - **Supply chain security**: Version tags cannot be overwritten to point to different content | ||
| - **Audit compliance**: An exact record of which artifacts were deployed | ||
|
|
||
| ## Helm chart manifest | ||
|
|
||
| Example Helm chart manifest as represented in a registry | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
digestfield to the Chart.yaml dependency documentation based on PR #32142 which adds theDigestfield to the v3 chart schema ininternal/chart/v3/dependency.go.Source: helm/helm#32142