Repository navigation
feat: suggest helm pull when a skipped layer is a Helm chart - #2363
Closed
VanshajPoonia wants to merge 2 commits into
Closed
VanshajPoonia wants to merge 2 commits into
VanshajPoonia wants to merge 2 commits into
Conversation
oras pull skips layers without a title annotation, which is every layer of a Helm chart. For a chart in a registry the hint now points to helm pull instead of oras copy. Fixes oras-project#1177 Signed-off-by: Vanshaj Poonia <[email protected]>
Signed-off-by: Vanshaj Poonia <[email protected]>
VanshajPoonia
requested review from
TerryHowe,
Wwwsylvia,
sabre1041,
sajayantony and
shizhMSFT
as code owners
November 25, 2026 08:23
TerryHowe
requested changes
Nov 25, 2026
TerryHowe
left a comment
Member
There was a problem hiding this comment.
I don't love the way oras pull works, but I don't think we should be doing this. I think oras pull should just pull by default, but not sure where it should pull.o
Contributor
Author
|
Understood. Thanks for the review. I'll close this. |
Closed
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
oras pullskips layers without a title annotation, and every layer of a Helm chart is one of those. The output then told the user to runoras copy ... --to-oci-layout, which does not give them a usable chart.The text handler now remembers when a skipped descriptor is the Helm config (
application/vnd.cncf.helm.config.v1+json). If the target is a remote registry it printsUse 'helm pull oci://<repo> --version <tag>' to pull the Helm chart.For a digest reference it printshelm pull oci://<repo>@<digest>. OCI layout targets and other artifacts keep theoras copyhint. JSON and template output are unchanged.Which issue(s) this PR fixes:
Fixes #1177
Please check the following list:
Checked against a real chart.
oras pull registry-1.docker.io/bitnamicharts/nginx:25.2.19from this branch ends withUse 'helm pull oci://registry-1.docker.io/bitnamicharts/nginx --version 25.2.19' to pull the Helm chart.I also ranhelm pull oci://registry-1.docker.io/bitnamicharts/nginx@sha256:7f81919e...with Helm 4.3.2 and it downloads the chart, so the digest form works. I did not test Helm 3. The E2E suite needs Docker and was not run.go test ./cmd/oras/internal/display/... ./cmd/oras/root/,go vetandgofmtpass.