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

feat: support importing internal ALBs for backend services #5490

Open
wants to merge 6 commits into
base: mainline
Choose a base branch
from

Conversation

huanjani
Copy link
Contributor

Related: #5438.
Integ test changes in #5483.

#5483 adds the Load Balancer DNS name to the service as an env var (and therefore appears in svc show output. However, it is not (yet) included in URI output as a recommended action in svc deploy output.

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

@huanjani huanjani requested a review from a team as a code owner November 16, 2023 23:15
@huanjani huanjani requested review from KollaAdithya and removed request for a team November 16, 2023 23:16
Copy link

github-actions bot commented Nov 16, 2023

🍕 Here are the new binary sizes!

Name New size (kiB) size (kiB) Delta (%)
macOS (amd) 57644 57312 +0.58
macOS (arm) 58692 58332 +0.62
linux (amd) 50548 50256 +0.58
linux (arm) 49856 49540 +0.64
windows (amd) 47612 47344 +0.57

Comment on lines 166 to 168
if len(alb.Listeners) == 0 || len(alb.Listeners) > 2 {
return fmt.Errorf(`imported ALB %q must have either one or two listeners`, alb.ARN)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Users might get confused about what to do when they see this error msg. Maybe we should

  1. return when they just have 1 listener
  2. check if they have exactly one http listener and one https listener. if not we error out.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed! not sure if this is any better...lmk!

@@ -596,7 +596,7 @@ func (o *deploySvcOpts) uriRecommendedActions() ([]string, error) {
case describe.URIAccessTypeServiceDiscovery:
network = "with service discovery."
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we fix this too 🥺

Copy link
Contributor Author

Choose a reason for hiding this comment

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

mergify bot pushed a commit that referenced this pull request Dec 1, 2023
Related: #5490.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.
@iamhopaul123 iamhopaul123 added do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. and removed do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. labels Dec 13, 2023
@iamhopaul123 iamhopaul123 added do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. and removed do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. labels Jan 17, 2024
@KollaAdithya KollaAdithya added do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. and removed do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. labels Jan 30, 2024
@codecov-commenter
Copy link

codecov-commenter commented Mar 14, 2024

Codecov Report

Attention: Patch coverage is 46.98795% with 44 lines in your changes are missing coverage. Please review.

Project coverage is 69.99%. Comparing base (48f092a) to head (f505a34).
Report is 4 commits behind head on mainline.

Files Patch % Lines
...al/pkg/deploy/cloudformation/stack/transformers.go 15.38% 22 Missing ⚠️
internal/pkg/cli/deploy/backend.go 72.50% 8 Missing and 3 partials ⚠️
...nal/pkg/deploy/cloudformation/stack/backend_svc.go 23.07% 8 Missing and 2 partials ⚠️
internal/pkg/cli/svc_deploy.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           mainline    #5490      +/-   ##
============================================
- Coverage     70.01%   69.99%   -0.02%     
============================================
  Files           303      303              
  Lines         46638    46714      +76     
  Branches        299      299              
============================================
+ Hits          32655    32699      +44     
- Misses        12396    12424      +28     
- Partials       1587     1591       +4     

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

@KollaAdithya KollaAdithya added do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. and removed do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. labels Mar 21, 2024
@huanjani huanjani added do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. and removed do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. labels Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Sprint 🏃‍♀️
  
In review
Development

Successfully merging this pull request may close these issues.

None yet

4 participants