-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Image tags delayed to be stored for the GHCR and GCR Pull Through Cache Repositories - Replication does not work #21009
Comments
|
Thank you very much for your answer, @stonezdj! So, if that is the case, wouldn't it be a problem for the event based replication? If tags do not exist, the images do not get replicated. That is our concern as we have a global Harbor and then replications to the Harbor instance in China. |
Could you please describe your requirements in detail?
|
@stonezdj , thank you very much for looking into this issue. We have two Harbor registries, one acting as a global registry and another one region specific. We want to replicate everything to the region specific Harbor registry, including the assets stored in the pull-through cache repository. That's why we rely on the event based replication. To work around the issue with the tags, we have scheduled a replication over the pull-through cache projects. Anyway, if the tags are not present the scheduled replication doesn't work either. What is the recommendation for this scenario? Thank you very much. |
Expected behavior and actual behavior:
When a pull is done over a pull-through cache repository using GHCR and GCR, the image should be stored in the cache together with their tags. However, the image is cached, but no tags are in place. After some time, the tags are available, but, at that time, replication has gone through and it hasn't taken any effect.
Steps to reproduce the problem:
docker login harbor
docker pull harbor-host/ghcr/image-name
docker pull harbor-host/gcr/image-name
Versions:
Additional context:
I have set up the GHCR and GCR Pull Through Cache registries via terraform using the following manifest:
Then, I've got two projects liked to those registries:
When I tried usign provider_name="google-gcr" and "github-gcr", harbor-core logs were having errors due to invalid adapter, that is why I ended up setting those up like that.
Thank you very much!
The text was updated successfully, but these errors were encountered: