(cherry-pick): fix proxy cache serve local on remote not found - #23049
Merged
stonezdj merged 8 commits intoApr 8, 2026
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## release-2.15.0 #23049 +/- ##
=================================================
Coverage ? 66.01%
=================================================
Files ? 1073
Lines ? 116488
Branches ? 2939
=================================================
Hits ? 76901
Misses ? 35332
Partials ? 4255
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Signed-off-by: AYDEV-FR <aymeric.deliencourt@aydev.fr> (cherry picked from commit 6208828)
Signed-off-by: AYDEV-FR <aymeric.deliencourt@aydev.fr> (cherry picked from commit 64ea3ca)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Vadim Bauer <Bauer.vadim@gmail.com> (cherry picked from commit ec97f2a)
Signed-off-by: AYDEV-FR <aymeric.deliencourt@aydev.fr> (cherry picked from commit 2135287)
Signed-off-by: AYDEV-FR <aymeric.deliencourt@aydev.fr> (cherry picked from commit d6b04bf)
Signed-off-by: AYDEV-FR <aymeric.deliencourt@aydev.fr> (cherry picked from commit 77c3ddd)
Signed-off-by: stonezdj <stonezdj@gmail.com> (cherry picked from commit e4d45dc)
Signed-off-by: stonezdj <stonezdj@gmail.com> (cherry picked from commit 9c9f1bc)
stonezdj
force-pushed
the
backport-pr-22153-to-2.15.0
branch
from
April 8, 2026 03:07
da43fe5 to
a4252d2
Compare
bupd
added a commit
to container-registry/harbor-next
that referenced
this pull request
Apr 10, 2026
…oxy cache Return locally cached artifacts when the remote registry returns not found, instead of propagating the error and failing the pull. Upstream: goharbor/harbor#23049 Signed-off-by: AYDEV-FR <aymeric.deliencourt@aydev.fr> Signed-off-by: stonezdj <stonezdj@gmail.com> Signed-off-by: Prasanth Baskar <bupdprasanth@gmail.com>
Merged
13 tasks
bupd
added a commit
to container-registry/harbor-next
that referenced
this pull request
Apr 10, 2026
…oxy cache Return locally cached artifacts when the remote registry returns not found, instead of propagating the error and failing the pull. Upstream: goharbor/harbor#23049 Signed-off-by: AYDEV-FR <aymeric.deliencourt@aydev.fr> Signed-off-by: stonezdj <stonezdj@gmail.com> Signed-off-by: Prasanth Baskar <bupdprasanth@gmail.com>
flbla
pushed a commit
to goharbor/terraform-provider-harbor
that referenced
this pull request
Jun 4, 2026
…ects (#604) ## What changed - Added `proxy_cache_local_on_not_found` boolean attribute to the `harbor_project` resource - When enabled, Harbor serves images from the local cache if they have been removed from the upstream registry - Validation ensures the option can only be set on proxy cache projects (i.e. when `registry_id` is set) ## Why it changed Harbor v2.15.1 introduced this capability via [goharbor/harbor#23049](goharbor/harbor@3e57cea). This adds Terraform support for the new project metadata field `proxy_cache_local_on_not_found`. ## How to test it 1. Configure a proxy cache project with a registry: ```hcl resource "harbor_project" "proxy" { name = "proxy-test" registry_id = harbor_registry.main.registry_id proxy_cache_local_on_not_found = true } ``` 2. Apply and verify the project metadata in Harbor UI or via the API (`GET /projects/{id}`) — `proxy_cache_local_on_not_found` should be `"true"`. 3. Verify that setting `proxy_cache_local_on_not_found = true` without `registry_id` produces a plan-time error. > **Requires Harbor v2.15.1 or above.** --- <sub>The changes and/or the PR description has been generated with the help of OpenCode.</sub> Signed-off-by: Kai Timmer <kai@staffbase.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #22153 to release-2.15.0.
This PR cherry-picks all commits from #22153 onto release-2.15.0 for inclusion in 2.15.1.