Skip to content

Commit cdc2cc9

Browse files
authored
release: cherry pick commit and add changelog for release 1.8.3 (#2309)
1 parent dc280b5 commit cdc2cc9

2 files changed

Lines changed: 20 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
# Table of Contents
2121

22+
- [1.8.3](#182)
2223
- [1.8.2](#182)
2324
- [1.8.1](#181)
2425
- [1.8.0](#180)
@@ -41,6 +42,18 @@
4142
- [0.2.0](#020)
4243
- [0.1.0](#010)
4344

45+
# 1.8.3
46+
47+
## What's New
48+
49+
- fix: candidate controllers missing Forget call in workqueue @Revolyssup (#2308)
50+
51+
## 👨🏽‍💻 Contributors
52+
53+
Thank you to our contributors for making this release possible:
54+
@Revolyssup
55+
56+
4457
# 1.8.2
4558

4659
## What's New

pkg/providers/apisix/apisix_global_rule.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,13 @@ func (c *apisixGlobalRuleController) sync(ctx context.Context, ev *types.Event)
179179
}
180180

181181
func (c *apisixGlobalRuleController) handleSyncErr(obj interface{}, errOrigin error) {
182+
if errOrigin == nil {
183+
c.MetricsCollector.IncrSyncOperation("GlobalRule", "success")
184+
c.workqueue.Forget(obj)
185+
} else {
186+
c.workqueue.AddRateLimited(obj)
187+
c.MetricsCollector.IncrSyncOperation("GlobalRule", "failure")
188+
}
182189
ev := obj.(*types.Event)
183190
event := ev.Object.(kube.ApisixGlobalRuleEvent)
184191
if k8serrors.IsNotFound(errOrigin) && ev.Type != types.EventDelete {
@@ -219,8 +226,6 @@ func (c *apisixGlobalRuleController) handleSyncErr(obj interface{}, errOrigin er
219226
)
220227
}
221228
}
222-
c.workqueue.Forget(obj)
223-
c.MetricsCollector.IncrSyncOperation("GlobalRule", "success")
224229
return
225230
}
226231
log.Warnw("sync ApisixGlobalRule failed, will retry",
@@ -241,8 +246,6 @@ func (c *apisixGlobalRuleController) handleSyncErr(obj interface{}, errOrigin er
241246
)
242247
}
243248
}
244-
c.workqueue.AddRateLimited(obj)
245-
c.MetricsCollector.IncrSyncOperation("GlobalRule", "failure")
246249
}
247250

248251
func (c *apisixGlobalRuleController) onAdd(obj interface{}) {

0 commit comments

Comments
 (0)