Skip to content

Commit 8da55ac

Browse files
committed
Stop removing FIP-assoc when worker is removed
1 parent 0875e8a commit 8da55ac

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

controllers/openstackmachine_controller.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,6 @@ func (r *OpenStackMachineReconciler) reconcileDelete(scope scope.Scope, cluster
273273
}
274274
}
275275

276-
// If this is a worker node and it has a floating IP attached, disassociate it.
277-
if !util.IsControlPlaneMachine(machine) && openStackMachine.Spec.FloatingIP != "" {
278-
if err = networkingService.DisassociateFloatingIP(machine, openStackMachine.Spec.FloatingIP); err != nil {
279-
conditions.MarkFalse(openStackMachine, infrav1.APIServerIngressReadyCondition, infrav1.FloatingIPErrorReason, clusterv1.ConditionSeverityError, "Disassociating floating IP failed: %v", err)
280-
return ctrl.Result{}, fmt.Errorf("disassociate floating IP: %w", err)
281-
}
282-
}
283-
284276
instanceSpec := machineToInstanceSpec(openStackCluster, machine, openStackMachine, "")
285277

286278
if err := computeService.DeleteInstance(openStackCluster, openStackMachine, instanceStatus, instanceSpec); err != nil {

0 commit comments

Comments
 (0)