Skip to content

Commit 15f4861

Browse files
ivanmatmatioktalz
authored andcommitted
BUG/MINOR: backends should be reprocessed after fixing a failed transaction
1 parent 612aaf6 commit 15f4861

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
@@ -260,6 +260,8 @@ func (c *HAProxyController) setupHAProxyRules() error {
260260
// clean haproxy config state
261261
func (c *HAProxyController) clean(failedSync bool) {
262262
c.haproxy.Clean()
263+
// Need to do that even if transaction failed otherwise at fix time, they won't be reprocessed.
264+
c.store.BackendProcessed = map[string]struct{}{}
263265
logger.Error(c.setupHAProxyRules())
264266
if !failedSync {
265267
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)