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

Configuring Harbor Proxy Cache Retention for Images Removed from Target Registry #20680

Open
AssafKatz3 opened this issue Jul 1, 2024 · 2 comments

Comments

@AssafKatz3
Copy link

Hi,
Per documentation:
If the image is no longer in the target registry, no image is served.

Our staging environment uses Harbor to pull images from a target registry, which in this case is Amazon ECR. The ECR repository contains many temporary images that are created and then deleted as part of our development workflow.

We want Harbor to retain cached copies of these temporary images even after they are removed from the ECR registry. This would allow our staging environment to continue using these images even if they are no longer available in ECR.

Is it possible to configure Harbor's proxy cache to achieve this desired behavior?

Thanks

@stonezdj
Copy link
Contributor

stonezdj commented Jul 2, 2024

According to the PR: #20597, current behavior is
If the image is no longer in the target registry, the local image is served

Did you find any issue when the remote image is removed?

BTW, we will update the document to meet the current behavior.

@AssafKatz3
Copy link
Author

AssafKatz3 commented Jul 3, 2024

@stonezdj Per my understand this PR doesn't include in any release yet, so I cannot test it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment