Skip to content

Commit

Permalink
Delete load balancers before subnets
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bfournie committed Jun 3, 2024
1 parent 90b1335 commit 48558ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/gcpcluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ func (r *GCPClusterReconciler) reconcileDelete(ctx context.Context, clusterScope
log.Info("Reconciling Delete GCPCluster")

reconcilers := []cloud.Reconciler{
subnets.New(clusterScope),
loadbalancers.New(clusterScope),
subnets.New(clusterScope),
firewalls.New(clusterScope),
networks.New(clusterScope),
}
Expand Down

0 comments on commit 48558ad

Please sign in to comment.