Skip waiting for NEGs to be deleted if SkipBackends is set in GCLBDeleteOptions
@@ -244,7 +244,7 @@ func (g *GCLB) CheckResourceDeletion(ctx context.Context, c cloud.Cloud, options
resources = append(resources, k)
}
}
- }
+
for k := range g.NetworkEndpointGroup {
ns, err := c.BetaNetworkEndpointGroups().Get(ctx, &k)
if err != nil {
@@ -263,6 +263,7 @@ func (g *GCLB) CheckResourceDeletion(ctx context.Context, c cloud.Cloud, options
resources = append(resources, k)
}
}
+ }
if len(resources) != 0 {
var s []string
