Skip to content
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

Is there a way to list all oci helm repositories across projects? #18089

Open
vijaySamanuri opened this issue Jan 10, 2023 · 2 comments
Open
Assignees
Labels
kind/question kind/requirement New feature or idea on top of harbor

Comments

@vijaySamanuri
Copy link

currently the only way i could figure out:

  1. list all projects
  2. iterate through each project and list repositories
  3. and then iterate through each repostiory and list artifacts to find out if it is oci helm repository.
    harbor api GET /api/v2.0/projects//repositories//artifacts)
    media_type and manifest_media_type fields in each artifact object distinguishes between helm chart and container image

is there a better way to list all oci helm repositories using harbor APIs?

@AllForNothing
Copy link
Contributor

Unfortunately, there is no better way by using Harbor APIs. Maybe, you can write a script to automate these steps

@stonezdj stonezdj added the kind/requirement New feature or idea on top of harbor label Jan 16, 2023
@qnetter
Copy link
Contributor

qnetter commented Jan 20, 2023

The question assumes there is a thing called an "OCI Helm repository." If my understanding is correct, there are OCI repos. An OCI repo can contain multiple types of OCI objects. So what would make a repo an OCI Helm repo"? One that has any Helm charts? One that has only Helm charts? I think enumeration by chart is the only way possible. Anything else would replicate basic logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question kind/requirement New feature or idea on top of harbor
Projects
None yet
Development

No branches or pull requests

4 participants