Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT committed Oct 18, 2022
1 parent e9ae8f9 commit 4d2830a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions operator/controllers/keptnevaluation/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 4d2830a

Please sign in to comment.