Skip to content

Commit

Permalink
Revert "Revert "Cherry-pick kubernetes#2186 -> 1.20: Include proxy-on…
Browse files Browse the repository at this point in the history
…ly subnet with purpose=REGIONAL_MANAGED_PROXY when generating firewall rules for Ingress""
  • Loading branch information
gauravkghildiyal authored Aug 21, 2023
1 parent 4d5c407 commit a4592ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/loadbalancers/features/l7ilb.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
klog.V(3).Infof("Found L7-ILB Subnet %s - %s", subnet.Name, subnet.IpCidrRange)
return subnet.IpCidrRange, nil
}
Expand Down

0 comments on commit a4592ad

Please sign in to comment.