-
Notifications
You must be signed in to change notification settings - Fork 310
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
Update ECR Regex to support new dual stack endpoints + tests #1069
Update ECR Regex to support new dual stack endpoints + tests #1069
Conversation
|
This issue is currently awaiting triage. If cloud-provider-aws contributors determine this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Welcome @BDworak! |
Hi @BDworak. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
9dffb43
to
de43309
Compare
/ok-to-test |
6f2cb1f
to
10340d5
Compare
…x to have 5 capture groups, elimiating un-needed captures, update tests for new endpoints and parseRegionFromECRPrivateHost to support multiple region combinations
10340d5
to
cef3b8f
Compare
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cartermckinnon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…upstream-release-1.30 Automated cherry pick of #1069: Update ECR Regex to support new dual stack endpoints, modify
…upstream-release-1.28 Automated cherry pick of #1069: Update ECR Regex to support new dual stack endpoints, modify
…upstream-release-1.29 Automated cherry pick of #1069: Update ECR Regex to support new dual stack endpoints, modify
…upstream-release-1.31 Automated cherry pick of #1069: Update ECR Regex to support new dual stack endpoints, modify
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR modifies the ECR Registry Regex to add support to new up and coming ECR Dual Stack endpoints. These endpoints are in the format:
This PR also cleans up the
parseRegionFromECRPrivateHost
function to expect 5 capture groups from theecrPrivateHostPattern
regex that would be of interest within the code.Example input:
123456789123.dkr-ecr-fips.us-west-2.on.aws
Captures:
Testing was added for the parseRegionFromECRPrivateHost method to account for all possible combinations of ECR FQDN ensuring accurate parsing of the regex.
Special notes for your reviewer:
CR for support in EKS AMI pending merge - awslabs/amazon-eks-ami#2082
Does this PR introduce a user-facing change?:
NONE