Skip to content

Commit b0066f9

Browse files
ivanmatmatioktalz
authored andcommitted
BUG/MINOR: backends should be reprocessed after fixing a failed transaction
1 parent 92aca4e commit b0066f9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/controller/controller.go

+2
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@ func (c *HAProxyController) setupHAProxyRules() error {
284284
// clean haproxy config state
285285
func (c *HAProxyController) clean(failedSync bool) {
286286
c.haproxy.Clean()
287+
// Need to do that even if transaction failed otherwise at fix time, they won't be reprocessed.
288+
c.store.BackendProcessed = map[string]struct{}{}
287289
logger.Error(c.setupHAProxyRules())
288290
if !failedSync {
289291
c.store.Clean()

pkg/store/store.go

-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ func (k *K8s) Clean() {
134134
}
135135
}
136136
k.SecretsProcessed = map[string]struct{}{}
137-
k.BackendProcessed = map[string]struct{}{}
138137
}
139138

140139
// GetNamespace returns Namespace. Creates one if not existing

0 commit comments

Comments
 (0)