You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by kv...@apache.org on 2022/03/18 09:06:43 UTC

[apisix-ingress-controller] branch master updated: fix: ApisixRouteEvent type assertion (#925)

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 <zh...@gmail.com>
AuthorDate: Fri Mar 18 17:05:39 2022 +0800

    fix: ApisixRouteEvent type assertion (#925)
    
    Signed-off-by: Jintao Zhang <zh...@gmail.com>
---
 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