Skip to content

Commit

Permalink
fix: object type should be apisix_upstream and endpointslice and apis…
Browse files Browse the repository at this point in the history
…ix_cluster_config (#1268)
  • Loading branch information
AlinsRan committed Aug 25, 2022
1 parent 4eede7e commit 20eb64e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/providers/apisix/apisix_cluster_config.go
Expand Up @@ -307,7 +307,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/providers/apisix/apisix_upstream.go
Expand Up @@ -339,7 +339,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/providers/k8s/endpoint/endpointslice.go
Expand Up @@ -147,7 +147,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 20eb64e

Please sign in to comment.