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

helm repo add library https://core.harbor.domain/library Error #18720

Closed
openstep opened this issue May 23, 2023 · 13 comments
Closed

helm repo add library https://core.harbor.domain/library Error #18720

openstep opened this issue May 23, 2023 · 13 comments
Assignees
Labels
area/helm-chart The issues about helm chart of Harbor Stale

Comments

@openstep
Copy link

openstep commented May 23, 2023

I try to add my harbor to helm, but getting the below error:

Error: looks like "https://core.harbor.domain/library" is not a valid chart repository or cannot be reached: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal string into Go value of type repo.IndexFile

I also tried with oci://core.harbor.domain/library but getting the same error.

How to add the harbor repo ro local helm?

harbor 2.8
helm v3.11.1 but same error with v3.8.0

I can however push, pull to/from the repo
helm push package-1.12.1.tgz oci://core.harbor.domain/library

@lengrongfu
Copy link
Contributor

you can use this comnand to test: helm repo add test https://core.harbor.domain/chartrepo/library , if need user and password, helm repo add test --username=xxx --password=xxx https://core.harbor.domain/chartrepo/library

@openstep
Copy link
Author

openstep commented May 23, 2023

How do you create the chartrepo/library? On my installation there isn't a tab for chart repos, only a single repositories tab:
image

Maybe in the this new version, the authors removed the helm charts tab
Here is a screenshot from an older version:
image

@lengrongfu
Copy link
Contributor

lengrongfu commented May 24, 2023

chartrepo is a fixed path, you can try it, i I haven't tried it on version 2.8.

#17958

@openstep
Copy link
Author

No, it is not working either:
chartrepo/library" is not a valid chart repository or cannot be reached: failed to fetch https://core.harbor.domain/chartrepo/library/index.yaml : 404 Not Found

@lengrongfu
Copy link
Contributor

2.8 version not worinkg. #17958

@ccgurley
Copy link

Also trying to use harbor as my helm repo. With chartmuseum support gone in 2.8, how do we go about adding our harbor instance as a helm repo? I'm getting the same errors as OP.
Thanks!

@AllForNothing
Copy link
Contributor

Please refer this (https://github.com/goharbor/harbor/wiki/Migrate-helm-chart-to-oci-registry-in-Harbor), since chart has been removed in 2.8

@AllForNothing AllForNothing self-assigned this May 29, 2023
@ccgurley
Copy link

ccgurley commented May 29, 2023

Possibly a dumb question but I installed 2.8 as my initial install so I don't need to do any migrations I just need to be able to "helm repo add harbor harbor.domain.tld". It seams the /chartrepo/ does not exist as a fixed path anymore, so what path do I use as the URL to add my chart repo.

helm repo add --username=admin harbor-charts https://harbor.domain.tld/chartrepo/charts
Password:
Error: looks like "https://harbor.domain.tld/chartrepo/charts" is not a valid chart repository or cannot be reached: failed to fetch https://harbor.domain.tld/chartrepo/charts/index.yaml : 404 Not Found
helm repo add --username=admin harbor-charts https://harbor.domain.tld/charts
Password:
Error: looks like "https://harbor.domain.tld/charts" is not a valid chart repository or cannot be reached: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal string into Go value of type repo.IndexFile

image

"helm pull oci://harbor.domain.tld/charts/pgo --version 5.3.0" works without issue.

Apologies if I've missed something.

@stonezdj
Copy link
Contributor

You can not add any oci chart repo because helm pull oci://harbor.domain.tld/charts/pgo ... don't require to add repo.

@ccgurley
Copy link

ccgurley commented May 30, 2023

Ahh, thanks! Got everything figured out now.

@abh
Copy link

abh commented Jun 5, 2023

On 2.7.0 (and previously) we had integration we had https://artifacthub.io pull the index.yaml file. Does the new version generate an index.yaml file from the helm artifacts in a project?

@github-actions
Copy link

github-actions bot commented Aug 5, 2023

This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.

@github-actions github-actions bot added the Stale label Aug 5, 2023
@stonezdj
Copy link
Contributor

On 2.7.0 (and previously) we had integration we had https://artifacthub.io pull the index.yaml file. Does the new version generate an index.yaml file from the helm artifacts in a project?

No, the index.yaml file is not available in OCI registry.

@stonezdj stonezdj added the area/helm-chart The issues about helm chart of Harbor label Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/helm-chart The issues about helm chart of Harbor Stale
Projects
None yet
Development

No branches or pull requests

6 participants