Fix support for public.ecr.aws - #938
Conversation
|
I was able to test this fix by building the Without authentication: With authentication (takes a while to run, probably because it's making several calls which otherwise would get rate-limited without authentication like shown above): |
c497530 to
966632b
Compare
|
@stefanprodan Please attach this policy to the IAM Role used by the aws integration tests GitHub Action workflow so we can push to public ECR: |
| resource "aws_ecrpublic_repository" "test_ecr_public" { | ||
| repository_name = local.name | ||
| tags = var.tags | ||
| force_destroy = true | ||
| } |
There was a problem hiding this comment.
Do we clean this up at the end of the CI run?
There was a problem hiding this comment.
Yes, on terraform destroy. But we may need to add code in the reaper, same for GCP WI pools and providers
|
I've added Elastic Container Registry Public with Full access to the |
|
@stefanprodan Can you please add also a statement allowing |
|
I remembered I have access to AWS and added |
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
|
Finally passed: https://github.com/fluxcd/pkg/actions/runs/15534292205 |
I tested the current code for public.ecr.aws and it doesn't work. It's probably because public ECR has a different endpoint and we were trying to reach it through the Go SDK for normal ECR, but there's a dedicated Go SDK for public ECR. This PR is fixing this by using the appropriate Go SDK.
xref: #936