From 42bd5cad188eab737ede30c124c31b8cfa496056 Mon Sep 17 00:00:00 2001 From: Yash Raj Date: Tue, 21 May 2024 10:43:30 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B1Remove=20deleting=20condition=20fro?= =?UTF-8?q?m=20reconcileSelectedStates=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/hetznerbaremetalhost_controller.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/controllers/hetznerbaremetalhost_controller.go b/controllers/hetznerbaremetalhost_controller.go index f34e91d85..a5d3e32c4 100644 --- a/controllers/hetznerbaremetalhost_controller.go +++ b/controllers/hetznerbaremetalhost_controller.go @@ -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) @@ -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: