From 8f7fabc640d52318a70e1b49a6e9e72a5533e81c Mon Sep 17 00:00:00 2001 From: Achyut Madhusudan Date: Tue, 30 Jul 2024 19:21:25 +0530 Subject: [PATCH] Clarify the "DSPA not found" log message that happens when a DSPA is deleted Co-authored-by: Greg Sheremeta --- controllers/dspipeline_controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/dspipeline_controller.go b/controllers/dspipeline_controller.go index a8b0a1a82..859a0ffae 100644 --- a/controllers/dspipeline_controller.go +++ b/controllers/dspipeline_controller.go @@ -177,7 +177,8 @@ func (r *DSPAReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl. dspa := &dspav1alpha1.DataSciencePipelinesApplication{} err := r.Get(ctx, req.NamespacedName, dspa) if err != nil && apierrs.IsNotFound(err) { - log.Info("DSPA resource was not found") + // TODO change this to a Debug message when doing https://issues.redhat.com/browse/RHOAIENG-1650 + log.Info("DSPA resource was not found, assuming it was recently deleted, nothing to do here") return ctrl.Result{}, nil } else if err != nil { log.Error(err, "Encountered error when fetching DSPA")