Skip to content
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

tests/int: ECR force delete and use go 1.18 #282

Merged
merged 3 commits into from
Jul 13, 2022
Merged

Conversation

darkowlzz
Copy link
Contributor

@darkowlzz darkowlzz commented Jul 12, 2022

Terraform AWS provider v4.22.0 changed the default force delete configuration of
ECR to false, resulting in test cleanup failure. Set force_delete of ECR
to true.
Refer: hashicorp/terraform-provider-aws#9913

Cleanup error:

│ Error: ECR Repository (flux-test-repo-rapid-boxer) not empty, consider using force_delete: RepositoryNotEmptyException: The repository with name 'flux-test-repo-rapid-boxer' in registry with id 'XXXXXXX' cannot be deleted because it still contains images

Also, minor improvements in the names used in the generated EKS
kubeconfig and login command to use the correct region.

Update go.mod and go.sum for go 1.18

AWS provider v4.22.0 changed the default force delete configuration of
ECR to false, resulting in test cleanup failure. Set force_delete of ECR
to true.

Signed-off-by: Sunny <[email protected]>
Use aws region from terraform state in the login command.
Minor improvements in the names used in the generated EKS
kubeconfig.

Signed-off-by: Sunny <[email protected]>
@stefanprodan stefanprodan added the area/ci CI related issues and pull requests label Jul 13, 2022
@darkowlzz darkowlzz merged commit c18d406 into main Jul 13, 2022
@darkowlzz darkowlzz deleted the aws-ecr-force-delete branch July 13, 2022 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci CI related issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants