Skip to content

Commit

Permalink
reduce requeue time during deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
lubedacht committed Jun 21, 2024
1 parent aa3af46 commit 4d51853
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/ionoscloudmachine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func (r *IonosCloudMachineReconciler) reconcileDelete(

if requeue {
log.Info("Deletion request is still in progress")
return ctrl.Result{RequeueAfter: defaultReconcileDuration}, nil
return ctrl.Result{RequeueAfter: reducedReconcileDuration}, nil
}

reconcileSequence := []serviceReconcileStep[scope.Machine]{
Expand Down
1 change: 1 addition & 0 deletions internal/controller/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import (

const (
defaultReconcileDuration = time.Second * 20
reducedReconcileDuration = time.Second * 10
)

type serviceReconcileStep[T scope.Cluster | scope.Machine] struct {
Expand Down

0 comments on commit 4d51853

Please sign in to comment.