From 6eb95deb157dc8783c23f76651837052c87e12c2 Mon Sep 17 00:00:00 2001 From: KevFan Date: Thu, 7 Dec 2023 12:02:59 +0000 Subject: [PATCH] feat: auth policy target not found reason --- controllers/authpolicy_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/authpolicy_controller.go b/controllers/authpolicy_controller.go index 58c4bb1be..fe28dc12c 100644 --- a/controllers/authpolicy_controller.go +++ b/controllers/authpolicy_controller.go @@ -67,7 +67,7 @@ func (r *AuthPolicyReconciler) Reconcile(eventCtx context.Context, req ctrl.Requ if delResErr == nil { delResErr = err } - return r.reconcileStatus(ctx, ap, delResErr) + return r.reconcileStatus(ctx, ap, common.ErrTargetNotFound{Kind: ap.Kind(), TargetRef: ap.GetTargetRef(), Err: delResErr}) } return ctrl.Result{}, err }