Skip to content

Get 500 When trying to add ecr-public registry mirror #22346

@goshlanguage

Description

@goshlanguage

Is your feature request related to a problem? Please describe.

Currently you can add any endpoint that matches the following regex:

ecrPattern = "https://(?:api|(\\d+)\\.dkr)\\.ecr(\\-fips)?\\.([\\w\\-]+)\\.(amazonaws\\.com(\\.cn)?|sc2s\\.sgov\\.gov|c2s\\.ic\\.gov)"

source: src/pkg/reg/adapter/awsecr/adapter.go

This unfortunately excludes the public mirrors such as ecr-public.REGION.amazonaws.com.
As I'm wanting to mirror this specifically but am unable to, I'd love to add it to the regex.

Describe the solution you'd like
Update regex so it allows you to submit ecr-public.us-east-1.amazonaws.com for example.

Additional context
N/A

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions