From 69e8699de5bf076ffdebfdad05dc7ced9941dc8b Mon Sep 17 00:00:00 2001 From: odubajDT Date: Tue, 4 Oct 2022 13:11:28 +0200 Subject: [PATCH] add minimal requeue timeouts after pre and post deployment reconciliations Signed-off-by: odubajDT --- operator/controllers/keptnworkloadinstance/controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/operator/controllers/keptnworkloadinstance/controller.go b/operator/controllers/keptnworkloadinstance/controller.go index 3ef8e26504..b193666056 100644 --- a/operator/controllers/keptnworkloadinstance/controller.go +++ b/operator/controllers/keptnworkloadinstance/controller.go @@ -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() { @@ -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