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

Charts replicated with "replication" are pushed to the deprecated Chartmuseum #17177

Closed
flbla opened this issue Jul 15, 2022 · 9 comments
Closed
Assignees

Comments

@flbla
Copy link
Contributor

flbla commented Jul 15, 2022

Harbor 2.5.3

Charts replicated with "replication" are pushed to the deprecated Chartmuseum.
I didn't find any issue about this.
Shouldn't it be pushed to the OCI registry? Do I miss something?
Is it planned to migrate chartmuseum charts to the OCI registry ?

Thanks.

@Vad1mo
Copy link
Member

Vad1mo commented Jul 15, 2022

Do you replicate from OCI to OCI or do you expect to replicate from Chartmuseum to OCI?

There is no logic at the moment that can convert from one to another.

@flbla
Copy link
Contributor Author

flbla commented Jul 15, 2022

I replicate from ArtifactHub to Harbor

@Vad1mo
Copy link
Member

Vad1mo commented Jul 16, 2022

ArtifactHub may have OCI and Chartmuseum charts.
As said:

There is no logic in Harbor that can convert from one to another. So, OCI -> OCI and Chartmuseum -> Chartmuseum

There is however a script here in some repo that converts Chartmuseum to OCI, I am not able to find it at the moment. Maybe someone on slack can help you to find it.

@zyyw
Copy link
Contributor

zyyw commented Jul 18, 2022

ArtifactHub may have OCI and Chartmuseum charts. As said:

There is no logic in Harbor that can convert from one to another. So, OCI -> OCI and Chartmuseum -> Chartmuseum

There is however a script here in some repo that converts Chartmuseum to OCI, I am not able to find it at the moment. Maybe someone on slack can help you to find it.

This is the doc about how to convert chartmuseum to OCI:

@flbla
Copy link
Contributor Author

flbla commented Jul 18, 2022

Thanks @Vad1mo and @zyyw ,

Can you explain to me how to configure an OCI replication with ArtifactHub ?
I didn't see anything related to OCI when I created an Endpoint and a ReplicationRule :
image
image

Thank you!

@chlins chlins self-assigned this Jul 18, 2022
@zyyw
Copy link
Contributor

zyyw commented Jul 18, 2022

ArtifactHub may have OCI and Chartmuseum charts. As said:

There is no logic in Harbor that can convert from one to another. So, OCI -> OCI and Chartmuseum -> Chartmuseum

There is however a script here in some repo that converts Chartmuseum to OCI, I am not able to find it at the moment. Maybe someone on slack can help you to find it.

This is the doc about how to convert chartmuseum to OCI:

As @Vad1mo mentioned, ArtifactHub may have OCI and Chartmuseum charts, and the replication can only replication
OCI->OCI, or Chartmuseum -> Chartmuseum. However, harbor provide a doc how to convert an existed (pushed or replicated) Chartmuseum to OCI artifact, doc link: https://github.com/goharbor/harbor/tree/main/tools/migrate_chart

@flbla
Copy link
Contributor Author

flbla commented Jul 18, 2022

oh, okay, it means all the chart I tried to replicate are only Chartmuseum charts. And until ArtifactHub provide them as OCI charts, it will not be possible to replicate them to Harbor as OCI. (Unless using the migrate_chart tool)
Did I understand well?
Thank you!

@Vad1mo
Copy link
Member

Vad1mo commented Jul 19, 2022

Your understanding is correct @flbla.
In the meantime I recommnd you to create a CI cron job to sync/convert charts from Chartmuseum to OCI. This way you get the expected result.

@flbla
Copy link
Contributor Author

flbla commented Jul 19, 2022

okay, thank you!

@flbla flbla closed this as completed Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants