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

fix: correctly empty repos when deleting app regional resources #5617

Merged

Conversation

Lou1415926
Copy link
Contributor

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.

@Lou1415926 Lou1415926 requested a review from a team as a code owner January 18, 2024 07:43
@Lou1415926 Lou1415926 requested review from efekarakus and removed request for a team January 18, 2024 07:43
Copy link

github-actions bot commented Jan 18, 2024

🍕 Here are the new binary sizes!

Name New size (kiB) size (kiB) Delta (%)
macOS (amd) 57212 57132 +0.14
macOS (arm) 58232 58156 +0.13
linux (amd) 50172 50096 +0.15
linux (arm) 49472 49348 +0.25
windows (amd) 47264 47200 +0.14

@codecov-commenter
Copy link

codecov-commenter commented Jan 18, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (19f6fe9) 70.03% compared to head (abc52f1) 70.02%.

Files Patch % Lines
internal/pkg/deploy/cloudformation/app.go 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           mainline    #5617      +/-   ##
============================================
- Coverage     70.03%   70.02%   -0.02%     
============================================
  Files           303      303              
  Lines         46589    46592       +3     
  Branches        299      299              
============================================
- Hits          32629    32625       -4     
- Misses        12377    12382       +5     
- Partials       1583     1585       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

ecr := cf.regionalECRClient(region)
for repo := range resources.RepositoryURLs {
if err := ecr.ClearRepository(repo); err != nil {
for svcName, _ := range resources.RepositoryURLs {
Copy link
Contributor

Choose a reason for hiding this comment

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

rip sorry for the churn :'( static check says my suggestion is stoopid

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah but for svcName := range resources.RepositoryURLs { def. made me churn too...

Copy link
Contributor

@iamhopaul123 iamhopaul123 left a comment

Choose a reason for hiding this comment

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

+1 to efe's fb and thank you for fixing the bug!

@mergify mergify bot merged commit 295049a into aws:mainline Jan 19, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants