From 4d2830a026715ea399d417d958417228087a9b75 Mon Sep 17 00:00:00 2001 From: odubajDT Date: Tue, 18 Oct 2022 10:15:41 +0200 Subject: [PATCH] polish Signed-off-by: odubajDT --- operator/controllers/keptnevaluation/controller.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/operator/controllers/keptnevaluation/controller.go b/operator/controllers/keptnevaluation/controller.go index 049a78d7b5..e8d266d450 100644 --- a/operator/controllers/keptnevaluation/controller.go +++ b/operator/controllers/keptnevaluation/controller.go @@ -118,13 +118,9 @@ func (r *KeptnEvaluationReconciler) Reconcile(ctx context.Context, req ctrl.Requ if err != nil { if errors.IsNotFound(err) { r.Log.Info(err.Error() + ", ignoring error since object must be deleted") - } else { - r.Log.Error(err, "Failed to retrieve a resource") + return ctrl.Result{Requeue: true, RequeueAfter: 30 * time.Second}, nil } - return ctrl.Result{Requeue: true, RequeueAfter: 30 * time.Second}, nil - } - - if evaluationDefinition == nil || evaluationProvider == nil { + r.Log.Error(err, "Failed to retrieve a resource") return ctrl.Result{}, nil }