-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Restrict subnet auto-discovery to new LB creation only #2125
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
Restrict subnet auto-discovery to new LB creation only #2125
Conversation
Welcome @oliviassss! |
Hi @oliviassss. Thanks for your PR. I'm waiting for a kubernetes-sigs 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/test-infra repository. |
Codecov Report
@@ Coverage Diff @@
## main #2125 +/- ##
==========================================
+ Coverage 49.52% 49.59% +0.06%
==========================================
Files 130 130
Lines 7065 7084 +19
==========================================
+ Hits 3499 3513 +14
- Misses 3284 3287 +3
- Partials 282 284 +2
Continue to review full report at Codecov.
|
/ok-to-test |
pkg/ingress/model_builder_test.go
Outdated
LoadBalancerArn: awssdk.String("lb-1"), | ||
AvailabilityZones: []*elbv2sdk.AvailabilityZone{ | ||
{ | ||
SubnetId: awssdk.String("subnet-a"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you use different subnet names in this case? I see 'subnet-a' and 'subnet-b' are used for other tests as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to 'subnet-e' and 'subent-f' in this case.
pkg/ingress/model_builder_test.go
Outdated
ctrl := gomock.NewController(t) | ||
defer ctrl.Finish() | ||
|
||
elbv2Client := services.NewMockELBV2(ctrl) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use MockTaggingManager instead? The tests are simpler that way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your advice. Have changed to use MockTaggingManager.
590c230
to
5d0d12f
Compare
5d0d12f
to
36196e1
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kishorj, oliviassss 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 |
Issue
#2056
Description
Restrict the subnet auto-discovery to new load balancer creation on ingress side.
Checklist
README.md
, or thedocs
directory)BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯