Skip to content

Commit

Permalink
feat: auth policy target not found reason
Browse files Browse the repository at this point in the history
  • Loading branch information
KevFan committed Dec 13, 2023
1 parent 1d0564f commit b0b5192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/authpolicy_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b0b5192

Please sign in to comment.