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 d6f13521 fix: type assertion failed (#1314)
d6f13521 is described below
commit d6f13521af3e89ed9f0408781953adfaeb537378
Author: Jintao Zhang <[email protected]>
AuthorDate: Fri Sep 2 17:30:01 2022 +0800
fix: type assertion failed (#1314)
---
pkg/providers/apisix/apisix_consumer.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkg/providers/apisix/apisix_consumer.go
b/pkg/providers/apisix/apisix_consumer.go
index b2f94a19..95b31bf8 100644
--- a/pkg/providers/apisix/apisix_consumer.go
+++ b/pkg/providers/apisix/apisix_consumer.go
@@ -215,7 +215,7 @@ func (c *apisixConsumerController) handleSyncErr(obj
interface{}, err error) {
if k8serrors.IsNotFound(err) && event.Type != types.EventDelete {
log.Infow("sync ApisixConsumer but not found, ignore",
zap.String("event_type", event.Type.String()),
- zap.String("ApisixConsumer", event.Object.(string)),
+ zap.Any("ApisixConsumer",
event.Object.(kube.ApisixConsumerEvent)),
)
c.workqueue.Forget(event)
return