Skip to content

Commit 48558ad

Browse files
committed
Delete load balancers before subnets
When using an internal load balancer, the internal IP addresses uses a cluster subnet. To avoid "already being used" errors on the subnet deletion, delete the load balancer first.
1 parent 90b1335 commit 48558ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/gcpcluster_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ func (r *GCPClusterReconciler) reconcileDelete(ctx context.Context, clusterScope
231231
log.Info("Reconciling Delete GCPCluster")
232232

233233
reconcilers := []cloud.Reconciler{
234-
subnets.New(clusterScope),
235234
loadbalancers.New(clusterScope),
235+
subnets.New(clusterScope),
236236
firewalls.New(clusterScope),
237237
networks.New(clusterScope),
238238
}

0 commit comments

Comments
 (0)