-
Notifications
You must be signed in to change notification settings - Fork 303
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 ILB subnet discovery to check for VPC as well #895
Fix ILB subnet discovery to check for VPC as well #895
Conversation
Hi @spencerhance. Thanks for your PR. I'm waiting for a kubernetes 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. |
holding since I am currently verifying in a sandbox |
/hold cancel |
/ok-to-test |
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.
LGTM with a small nit
/approve
pkg/loadbalancers/features/l7ilb.go
Outdated
if subnet.Role == "ACTIVE" && subnet.Purpose == "INTERNAL_HTTPS_LOAD_BALANCER" { | ||
sameNetwork, err := isSameNetwork(subnet.Network, cloud.NetworkURL()) | ||
if err != nil { | ||
return "", fmt.Errorf("Error comparing subnets: %v", err) |
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.
nit: return "", fmt.Errorf("error comparing subnets: %v", err)
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.
Done
Previously, we might accidentally pick a subnet in another VPC
d3b2eca
to
beb8ce9
Compare
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: MrHohn, spencerhance 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 |
Cherry pick #895 into 1 7
Previously, we might accidentally pick a subnet in another VPC
I'm working on unit testing this in another branch. fakeGCE doesn't have a networkURL which makes testing this potentially more complicated.
This will need to be cherry-picked into release-1.7
/assign @MrHohn