Skip to content

Commit 4d63a22

Browse files
fwieselnotandy
authored andcommitted
Decomission: Requeue on hypervisor update
The decomissioning controller doesn't reconcile on the hypervisor, so it won't get an update, which means we have to requeue it 'manually'.
1 parent fb28a04 commit 4d63a22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/decomission_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func (r *NodeDecommissionReconciler) setDecommissioningCondition(ctx context.Con
195195
k8sclient.MergeFromWithOptimisticLock{}), k8sclient.FieldOwner(DecommissionControllerName)); err != nil {
196196
return ctrl.Result{}, fmt.Errorf("cannot update hypervisor status due to %w", err)
197197
}
198-
return ctrl.Result{}, nil
198+
return ctrl.Result{RequeueAfter: shortRetryTime}, nil
199199
}
200200

201201
// SetupWithManager sets up the controller with the Manager.

0 commit comments

Comments
 (0)