Skip to content

Commit

Permalink
release: cherry pick commit and add changelog for release 1.8.3 (#2309)
Browse files Browse the repository at this point in the history
  • Loading branch information
Revolyssup authored Oct 15, 2024
1 parent dc280b5 commit cdc2cc9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

# Table of Contents

- [1.8.3](#182)
- [1.8.2](#182)
- [1.8.1](#181)
- [1.8.0](#180)
Expand All @@ -41,6 +42,18 @@
- [0.2.0](#020)
- [0.1.0](#010)

# 1.8.3

## What's New

- fix: candidate controllers missing Forget call in workqueue @Revolyssup (#2308)

## 👨🏽‍💻 Contributors

Thank you to our contributors for making this release possible:
@Revolyssup


# 1.8.2

## What's New
Expand Down
11 changes: 7 additions & 4 deletions pkg/providers/apisix/apisix_global_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,13 @@ func (c *apisixGlobalRuleController) sync(ctx context.Context, ev *types.Event)
}

func (c *apisixGlobalRuleController) handleSyncErr(obj interface{}, errOrigin error) {
if errOrigin == nil {
c.MetricsCollector.IncrSyncOperation("GlobalRule", "success")
c.workqueue.Forget(obj)
} else {
c.workqueue.AddRateLimited(obj)
c.MetricsCollector.IncrSyncOperation("GlobalRule", "failure")
}
ev := obj.(*types.Event)
event := ev.Object.(kube.ApisixGlobalRuleEvent)
if k8serrors.IsNotFound(errOrigin) && ev.Type != types.EventDelete {
Expand Down Expand Up @@ -219,8 +226,6 @@ func (c *apisixGlobalRuleController) handleSyncErr(obj interface{}, errOrigin er
)
}
}
c.workqueue.Forget(obj)
c.MetricsCollector.IncrSyncOperation("GlobalRule", "success")
return
}
log.Warnw("sync ApisixGlobalRule failed, will retry",
Expand All @@ -241,8 +246,6 @@ func (c *apisixGlobalRuleController) handleSyncErr(obj interface{}, errOrigin er
)
}
}
c.workqueue.AddRateLimited(obj)
c.MetricsCollector.IncrSyncOperation("GlobalRule", "failure")
}

func (c *apisixGlobalRuleController) onAdd(obj interface{}) {
Expand Down

0 comments on commit cdc2cc9

Please sign in to comment.