Skip to content

Commit

Permalink
🌱Remove deleting condition from reconcileSelectedStates method
Browse files Browse the repository at this point in the history
  • Loading branch information
yrs147 committed May 21, 2024
1 parent ae940ba commit 42bd5ca
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions controllers/hetznerbaremetalhost_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ type HetznerBareMetalHostReconciler struct {
// Reconcile implements the reconcilement of HetznerBareMetalHost objects.
func (r *HetznerBareMetalHostReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, reterr error) {
log := ctrl.LoggerFrom(ctx)

// Fetch the Hetzner bare metal host instance.
bmHost := &infrav1.HetznerBareMetalHost{}
err := r.Get(ctx, req.NamespacedName, bmHost)
Expand Down Expand Up @@ -177,16 +176,6 @@ func (r *HetznerBareMetalHostReconciler) reconcile(
}

func (r *HetznerBareMetalHostReconciler) reconcileSelectedStates(ctx context.Context, bmHost *infrav1.HetznerBareMetalHost) (res ctrl.Result, err error) {
if !bmHost.DeletionTimestamp.IsZero() {
conditions.MarkFalse(
bmHost,
infrav1.HostReadyCondition,
infrav1.DeletionInProgressReason,
clusterv1.ConditionSeverityInfo,
"Host is not ready because it is being deleted",
)
conditions.SetSummary(bmHost)
}
switch bmHost.Spec.Status.ProvisioningState {
// Handle StateNone: check whether needs to be provisioned or deleted.
case infrav1.StateNone:
Expand Down

0 comments on commit 42bd5ca

Please sign in to comment.