Skip to content

update ECR adapter to allow for ecr-public to be mirored#22351

Open
goshlanguage wants to merge 1 commit intogoharbor:mainfrom
goshlanguage:update-ecr-regex-to-allow-public-mirror
Open

update ECR adapter to allow for ecr-public to be mirored#22351
goshlanguage wants to merge 1 commit intogoharbor:mainfrom
goshlanguage:update-ecr-regex-to-allow-public-mirror

Conversation

@goshlanguage
Copy link

@goshlanguage goshlanguage commented Sep 12, 2025

Thank you for contributing to Harbor!

Comprehensive Summary of your change

Allows ecr-public to be mirrored in the same way ecr-fips can be today

Issue being fixed

Fixes #(issue)
#22346

Please indicate you've done the following:

  • Well Written Title and Summary of the PR
  • Label the PR as needed. "release-note/ignore-for-release, release-note/new-feature, release-note/update, release-note/enhancement, release-note/community, release-note/breaking-change, release-note/docs, release-note/infra, release-note/deprecation"
  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Made sure tests are passing and test coverage is added if needed.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed in website repository.

@goshlanguage goshlanguage requested a review from a team as a code owner September 12, 2025 15:40
@goshlanguage goshlanguage force-pushed the update-ecr-regex-to-allow-public-mirror branch from 27c8688 to 9800b7a Compare September 12, 2025 16:16
@chlins
Copy link
Member

chlins commented Sep 15, 2025

@vincentni Please help to take a look for this change, thanks!

@chlins chlins added area/replication replication/adapters related to replication adapters labels Sep 15, 2025
@goshlanguage goshlanguage force-pushed the update-ecr-regex-to-allow-public-mirror branch from b9714f5 to f0b8e52 Compare September 16, 2025 18:59
@codecov
Copy link

codecov bot commented Sep 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.01%. Comparing base (c8c11b4) to head (9cf665e).
⚠️ Report is 673 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main   #22351       +/-   ##
===========================================
+ Coverage   45.36%   66.01%   +20.64%     
===========================================
  Files         244     1074      +830     
  Lines       13333   116417   +103084     
  Branches     2719     2937      +218     
===========================================
+ Hits         6049    76854    +70805     
- Misses       6983    35314    +28331     
- Partials      301     4249     +3948     
Flag Coverage Δ
unittests 66.01% <ø> (+20.64%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/pkg/reg/adapter/awsecr/adapter.go 66.03% <ø> (ø)

... and 988 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@goshlanguage goshlanguage force-pushed the update-ecr-regex-to-allow-public-mirror branch from f0b8e52 to f602314 Compare September 19, 2025 14:43
@goshlanguage
Copy link
Author

@chlins I don't mean to nag, but is it possible we won't get a review from @vincentni? Their github history looks a little sparse, and its been a few weeks.

If there are other tests I can add to raise confidence here, I'm happy to do so. Please let me know.

Thanks!

@goshlanguage
Copy link
Author

Hey folks, just wanted to check in again. Is there any appetite for this?

@github-actions
Copy link

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

@github-actions github-actions bot added the Stale label Jan 14, 2026
@github-actions
Copy link

This PR was closed because it has been stalled for 30 days with no activity. If this PR is still relevant, please re-open a new PR against main.

@chlins
Copy link
Member

chlins commented Feb 13, 2026

@Vad1mo Hi, could you please review this PR? I assume you have experience working with AWS ECR.

Copy link
Member

@chlins chlins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@chlins
Copy link
Member

chlins commented Feb 13, 2026

@chlins I don't mean to nag, but is it possible we won't get a review from @vincentni? Their github history looks a little sparse, and its been a few weeks.

If there are other tests I can add to raise confidence here, I'm happy to do so. Please let me know.

Thanks!

@goshlanguage Sorry for the late response. Vincentni is an engineer from AWS and the maintainer of the ECR adapter, so I pinged him to review this PR. However, he doesn’t seem to be very active on GitHub. Since I don’t have much experience with ECR myself, I can only say that the code changes look good to me in theory. Let's wait for another maintainer with ECR experience to review it again.

…ored similar to how ecr-fips is

Signed-off-by: Ryan Hartje <ryan@ryanhartje.com>
@chlins chlins force-pushed the update-ecr-regex-to-allow-public-mirror branch from b84661d to 9cf665e Compare February 13, 2026 11:04
@chlins chlins enabled auto-merge (squash) February 13, 2026 11:04
@chlins chlins added release-note/update Update or Fix and removed Stale labels Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/replication release-note/update Update or Fix replication/adapters related to replication adapters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants