From 6678bc50e1f1b7bdd0745427a8d9f1ac897b4013 Mon Sep 17 00:00:00 2001 From: Jean-Marc ANDRE Date: Thu, 20 Apr 2023 10:40:04 +0200 Subject: [PATCH] don't need to log BackupConfiguration not found --- controllers/backupsession_controller.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/backupsession_controller.go b/controllers/backupsession_controller.go index 7dc14cc..04b41c6 100644 --- a/controllers/backupsession_controller.go +++ b/controllers/backupsession_controller.go @@ -62,7 +62,9 @@ func (r *BackupSessionReconciler) Reconcile(ctx context.Context, req ctrl.Reques Namespace: backupSession.Spec.Ref.Namespace, Name: backupSession.Spec.Ref.Name, }, &backupConf); err != nil { - r.Log.Error(err, "unable to get BackupConfiguration") + if !errors.IsNotFound(err) { + r.Log.Error(err, "unable to get BackupConfiguration") + } return ctrl.Result{}, err } if !backupSession.ObjectMeta.DeletionTimestamp.IsZero() {