-
Notifications
You must be signed in to change notification settings - Fork 301
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
Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY when generating firewall rules for Ingress #2186
Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY when generating firewall rules for Ingress #2186
Conversation
/hold |
…nerating firewall rules for Ingress
76dfc59
to
1333701
Compare
/ok-to-test |
…EGIONAL_MANAGED_PROXY when generating firewall rules for Ingress
/unhold |
@@ -44,7 +44,7 @@ func ILBSubnetSourceRange(cloud *gce.Cloud, region string) (string, error) { | |||
if err != nil { | |||
return "", fmt.Errorf("error comparing subnets: %v", err) | |||
} | |||
if subnet.Role == "ACTIVE" && subnet.Purpose == "INTERNAL_HTTPS_LOAD_BALANCER" && sameNetwork { | |||
if subnet.Role == "ACTIVE" && (subnet.Purpose == "INTERNAL_HTTPS_LOAD_BALANCER" || subnet.Purpose == "REGIONAL_MANAGED_PROXY") && sameNetwork { |
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.
is it possible that these two subnets exist at the same time and we have to return multiple subnet.IpCidrRange
?
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.
That is a great question!
I don't think that's possible. Source https://cloud.google.com/load-balancing/docs/proxy-only-subnets:
"You can't have both an INTERNAL_HTTPS_LOAD_BALANCER and a REGIONAL_MANAGED_PROXY subnet in the same network and region, in the same way you can't have two REGIONAL_MANAGED_PROXY proxies or two INTERNAL_HTTPS_LOAD_BALANCER proxies."
I anyways gave it a try and couldn't create two.
/lgtm @swetharepakula for final approval |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aojea, gauravkghildiyal 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 #2186: Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY when generating firewall rules for Ingress
[Cherry-pick #2186] Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY when ge…
[Cherry-pick #2186] Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY when ge…
[Cherry-pick #2186] Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY when ge…
…purpose=REGIONAL_MANAGED_PROXY when ge…"
…purpose=REGIONAL_MANAGED_PROXY when ge…"
…urpose=REGIONAL_MANAGED_PROXY when generating firewall rules for Ingress"
…k-2186-1.22 Revert "[Cherry-pick #2186 -> 1.22] Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY..."
…k-#2186-to-1.20 Revert "Cherry-pick #2186 -> 1.20: Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY when generating firewall rules for Ingress"
…k-2186-1.21 Revert "[Cherry-pick #2186 -> 1.21] Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY when ge…"
…ly subnet with purpose=REGIONAL_MANAGED_PROXY when generating firewall rules for Ingress""
…nly subnet with purpose=REGIONAL_MANAGED_PROXY when ge…""
…nly subnet with purpose=REGIONAL_MANAGED_PROXY...""
…0-cherry-pick-2186-1.21 [Cherry-pick #2186 -> 1.21] Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY when generating firewall rules for Ingress
[Cherry-pick #2186 -> 1.19] Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY when generating firewall rules for Ingress
…7-cherry-pick-#2186-to-1.20 Cherry-pick #2186 -> 1.20: Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY when generating firewall rules for Ingress
…9-cherry-pick-2186-1.22 [Cherry-pick #2186 -> 1.22] Include proxy-only subnet with purpose=REGIONAL_MANAGED_PROXY when generating firewall rules for Ingress
/assign @swetharepakula