Skip to content

Commit

Permalink
add minimal requeue timeouts after pre and post deployment reconcilia…
Browse files Browse the repository at this point in the history
…tions

Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT committed Oct 4, 2022
1 parent 24918c8 commit 69e8699
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operator/controllers/keptnworkloadinstance/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (r *KeptnWorkloadInstanceReconciler) Reconcile(ctx context.Context, req ctr
r.Log.Error(err, "Error reconciling pre-deployment checks")
return ctrl.Result{}, err
}
return ctrl.Result{Requeue: true}, nil
return ctrl.Result{Requeue: true, RequeueAfter: 5 * time.Second}, nil
}

if !workloadInstance.IsDeploymentCompleted() {
Expand All @@ -116,7 +116,7 @@ func (r *KeptnWorkloadInstanceReconciler) Reconcile(ctx context.Context, req ctr
r.Log.Error(err, "Error reconciling post-deployment checks")
return ctrl.Result{Requeue: true}, err
}
return ctrl.Result{Requeue: true}, nil
return ctrl.Result{Requeue: true, RequeueAfter: 5 * time.Second}, nil
}

return ctrl.Result{}, nil
Expand Down

0 comments on commit 69e8699

Please sign in to comment.