Skip to content

Commit

Permalink
[v1.5] fix: type assertion failed (#1303)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlinsRan authored Sep 2, 2022
1 parent 8241b15 commit 4abed4d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/ingress/apisix_cluster_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func (c *apisixClusterConfigController) handleSyncErr(obj interface{}, err error
if k8serrors.IsNotFound(err) && event.Type != types.EventDelete {
log.Infow("sync ApisixClusterConfig but not found, ignore",
zap.String("event_type", event.Type.String()),
zap.String("ApisixClusterConfig", event.Object.(string)),
zap.Any("ApisixClusterConfig", event.Object.(kube.ApisixClusterConfigEvent)),
)
c.workqueue.Forget(event)
return
Expand Down
2 changes: 1 addition & 1 deletion pkg/ingress/apisix_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,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
Expand Down
2 changes: 1 addition & 1 deletion pkg/ingress/apisix_upstream.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ func (c *apisixUpstreamController) handleSyncErr(obj interface{}, err error) {
if k8serrors.IsNotFound(err) && event.Type != types.EventDelete {
log.Infow("sync ApisixUpstream but not found, ignore",
zap.String("event_type", event.Type.String()),
zap.String("ApisixUpstream", event.Object.(string)),
zap.Any("ApisixUpstream", event.Object.(kube.ApisixUpstreamEvent)),
)
c.workqueue.Forget(event)
return
Expand Down
2 changes: 1 addition & 1 deletion pkg/ingress/endpointslice.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (c *endpointSliceController) handleSyncErr(obj interface{}, err error) {
if k8serrors.IsNotFound(err) && event.Type != types.EventDelete {
log.Infow("sync endpointSlice but not found, ignore",
zap.String("event_type", event.Type.String()),
zap.String("endpointSlice", event.Object.(string)),
zap.Any("endpointSlice", event.Object.(endpointSliceEvent)),
)
c.workqueue.Forget(event)
return
Expand Down

0 comments on commit 4abed4d

Please sign in to comment.