disable gce service handling if has rbs forwarding rule

This commit is contained in:
Slavik Panasovets 2021-12-03 13:11:02 +00:00
parent e2c49a0dd1
commit b2534483fa

View File

@ -62,6 +62,10 @@ func (g *Cloud) ensureExternalLoadBalancer(clusterName string, clusterID string,
if hasFinalizer(apiService, ELBRbsFinalizer) {
return nil, cloudprovider.ImplementedElsewhere
}
// Skip service handling if it has Regional Backend Service created by Ingress-GCE
if existingFwdRule != nil && existingFwdRule.BackendService != "" {
return nil, cloudprovider.ImplementedElsewhere
}
if len(nodes) == 0 {
return nil, fmt.Errorf(errStrLbNoHosts)