Skip to content

Commit

Permalink
reduce dataImage unmanagedRetryDelay to 20 seconds
Browse files Browse the repository at this point in the history
Signed-off-by: Himanshu Roy <hroy@redhat.com>
(cherry picked from commit be67a8912b5d3a0f0f3968bff02279e6ea24561a)
  • Loading branch information
hroyrh committed Nov 22, 2024
1 parent ab830c2 commit f634fec
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions controllers/metal3.io/dataimage_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ import (
)

const (
dataImageRetryDelay = time.Second * 60
dataImageUpdateDelay = time.Second * 30
dataImageRetryDelay = time.Second * 60
dataImageUpdateDelay = time.Second * 30
dataImageUnmanagedRetryDelay = time.Second * 20
)

// DataImageReconciler reconciles a DataImage object.
Expand Down Expand Up @@ -129,7 +130,7 @@ func (r *DataImageReconciler) Reconcile(ctx context.Context, req ctrl.Request) (

if hasDetachedAnnotation(bmh) {
reqLogger.Info("the host is detached, not running reconciler")
return ctrl.Result{Requeue: true, RequeueAfter: unmanagedRetryDelay}, nil
return ctrl.Result{Requeue: true, RequeueAfter: dataImageUnmanagedRetryDelay}, nil
}

// If the reconciliation is paused, requeue
Expand Down

0 comments on commit f634fec

Please sign in to comment.