@@ -19,6 +19,7 @@ package controllers
19
19
import (
20
20
"context"
21
21
"fmt"
22
+ "time"
22
23
23
24
"github.com/go-logr/logr"
24
25
mf "github.com/manifestival/manifestival"
@@ -161,10 +162,10 @@ func (r *DSPAReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.
161
162
dspa := & dspav1alpha1.DataSciencePipelinesApplication {}
162
163
err := r .Get (ctx , req .NamespacedName , dspa )
163
164
if err != nil && apierrs .IsNotFound (err ) {
164
- log .Info ("Stop DSPAParams reconciliation " )
165
+ log .Info ("DSPA resource was not found " )
165
166
return ctrl.Result {}, nil
166
167
} else if err != nil {
167
- log .Error (err , "Unable to fetch the DSPAParams " )
168
+ log .Error (err , "Encountered error when fetching DSPA " )
168
169
return ctrl.Result {}, err
169
170
}
170
171
@@ -205,7 +206,7 @@ func (r *DSPAReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.
205
206
err = params .ExtractParams (ctx , dspa , r .Client , r .Log )
206
207
if err != nil {
207
208
log .Info (fmt .Sprintf ("Encountered error when parsing CR: [%s]" , err ))
208
- return ctrl.Result {}, nil
209
+ return ctrl.Result {Requeue : true , RequeueAfter : 2 * time . Minute }, nil
209
210
}
210
211
211
212
err = r .ReconcileDatabase (ctx , dspa , params )
0 commit comments