From 93b49d12d495d6b54a013f10da845fca14071c4f Mon Sep 17 00:00:00 2001 From: Gaurav Kumar Ghildiyal Date: Mon, 21 Aug 2023 13:07:11 -0700 Subject: [PATCH] =?UTF-8?q?Revert=20"Revert=20"[Cherry-pick=C2=A0#2186=20-?= =?UTF-8?q?>=201.22]=20Include=20proxy-only=20subnet=20with=20purpose=3DRE?= =?UTF-8?q?GIONAL=5FMANAGED=5FPROXY...""?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/loadbalancers/features/l7ilb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/loadbalancers/features/l7ilb.go b/pkg/loadbalancers/features/l7ilb.go index 33fe57e423..83655124eb 100644 --- a/pkg/loadbalancers/features/l7ilb.go +++ b/pkg/loadbalancers/features/l7ilb.go @@ -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 }