This is an automated email from the ASF dual-hosted git repository.

kvn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git


The following commit(s) were added to refs/heads/master by this push:
     new 2178857  fix: ApisixRouteEvent type assertion (#925)
2178857 is described below

commit 2178857fbe2608cec1dc8ce5b1e0ec232568b375
Author: Jintao Zhang <[email protected]>
AuthorDate: Fri Mar 18 17:05:39 2022 +0800

    fix: ApisixRouteEvent type assertion (#925)
    
    Signed-off-by: Jintao Zhang <[email protected]>
---
 pkg/ingress/apisix_route.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/ingress/apisix_route.go b/pkg/ingress/apisix_route.go
index aae7fdc..dc7f41e 100644
--- a/pkg/ingress/apisix_route.go
+++ b/pkg/ingress/apisix_route.go
@@ -264,7 +264,7 @@ func (c *apisixRouteController) handleSyncErr(obj 
interface{}, errOrigin error)
        if k8serrors.IsNotFound(errOrigin) && ev.Type != types.EventDelete {
                log.Infow("sync ApisixRoute but not found, ignore",
                        zap.String("event_type", ev.Type.String()),
-                       zap.String("ApisixRoute", ev.Object.(string)),
+                       zap.String("ApisixRoute", event.Key),
                )
                c.workqueue.Forget(event)
                return

Reply via email to