Skip to content

if an artifact cannot be pulled by oras pull, recommend oras user to use dedicated tool  #1177

Not planned

Description

@qweeah

What is the version of your ORAS CLI

main branch build from 92f9c8b

What would you like to be added?

Taking Helm chart artifacts as an example, the chart files are archived into a Tarball file and added as a layer. Since the file name is not stored into the org.opencontainers.image.ref.name annotation, oras pull will skip the unnamed layer and ORAS users cannot use oras pull to pull a Helm chart artifact.

E.g. If we use oras pull to pull a Helm chart artifact, the output will be

✗ oras pull jinzha1.azurecr.io/helm/azure-arc-k8sagents:0.1.1844-mz
✓ Skipped     application/vnd.cncf.helm.chart.content.v1.tar+gzip                         24.9/24.9 kB 100.00%     0s  
└─ sha256:ffaa0b3df619409f2a391b773ddac01415a7622bc4635e331527ef9011514116
✓ Skipped     application/vnd.cncf.helm.config.v1+json                                      319/319  B 100.00%     0s  
└─ sha256:b2eb9186e71afc45b00067073bdb69230fc5d82c1b0c8f78691bfa29ca026d1b
✓ Pulled      application/vnd.oci.image.manifest.v1+json                                    831/831  B 100.00%     0s  
└─ sha256:78fbfbb0dd2e13c84868d61efb4dc6ee1896e321c22d09e0bb65bab59bb3e4f8
Skipped pulling layers without file name in "org.opencontainers.image.title"
Use 'oras copy jinzha1.azurecr.io/helm/azure-arc-k8sagents:0.1.1844-mz --to-oci-layout <layout-dir>' to pull all layers.

The suggestion Use 'oras copy jinzha1.azurecr.io/helm/azure-arc-k8sagents:0.1.1844-mz --to-oci-layout <layout-dir>' to pull all layers. does not provide much help for Helm charts. Even though ORAS user can use it to download the artifact into a local OCI layout folder, it's still not presented as folder containing files and hard to be used directly by common users.

If the config exists with mediaType as application/vnd.cncf.helm.config.v1+json, the suggestion should be changed to recommend using helm pull.

Why is this needed for ORAS?

It will help user find the right tool to pull the artifact if it's not supported by ORAS.

Are you willing to submit PRs to contribute to this feature?

  • Yes, I am willing to implement it.

Activity

  1. added
    enhancement
    ux
    triage
    on Nov 7, 2023
  2. added this to the future milestone on Nov 7, 2023
  3. removed
    triage
    on Nov 14, 2023
  4. TerryHowe commented on Nov 25, 2026

    @TerryHowe
    Member

    Closing as not planned. Hard-coding tool-specific hints (e.g. helm pull) into oras pull output doesn't scale — it invites an ever-growing list of artifact types and tools, and the suggested command can't be built correctly for every target (OCI layouts, digest references, Helm 3 vs 4). See the discussion on #2363. The better direction is for oras pull itself to handle layers without an org.opencontainers.image.title annotation rather than pointing users elsewhere; that should be tracked as a separate design issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementux

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions