Skip to content

oras repo ls to support sub namespaces #733

@SteveLasker

Description

@SteveLasker

What happened in your environment?

My registry contains multiple repos under nested namespaces

base-images/dotnet/core/sdk
base-images/node
hello-world
samples/helm/wordpress
samples/text
samples/thingthang
samples/txt

I'd like to find the repos under the samples/ namespace

calling oras repo ls demo42.azurecr.io gives an appropriate listing
However, calling oras repo ls demo42.azurecr.io/samples gives:
Error: invalid reference: invalid registry

What did you expect to happen?

list the repos under the /samples namespace. This would also be the case for something like docker that lists repos under an org namespace, although docker hub doesn't support the _catalog API :(

How can we reproduce it?

oras push $REGISTRY/samples/artifact:1.0 \
    --config /dev/null:readme/example\
    ./readme.md:application/markdown

oras repo ls $REGISTRY/samples

What is the version of your ORAS CLI?

0.16.0

What is your OS environment?

wsl2

Are you willing to submit PRs to fix it?

  • Yes, I am willing to fix it.

Metadata

Metadata

Labels

enhancementNew feature or requestuxUser experience related

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions