We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f295d1 commit 3445475Copy full SHA for 3445475
pkg/controller/monitor.go
@@ -75,6 +75,10 @@ func (c *HAProxyController) SyncData() {
75
change = c.store.EventPublishService(ns, job.Data.(*store.Service))
76
}
77
hadChanges = hadChanges || change
78
+ if job.EventProcessed != nil {
79
+ close(job.EventProcessed)
80
+ }
81
+
82
83
84
pkg/k8s/types.go
@@ -7,9 +7,10 @@ type SyncType string
7
type SyncDataEvent struct {
8
_ [0]int
9
SyncType
10
- Namespace string
11
- Name string
12
- Data interface{}
+ Namespace string
+ Name string
+ Data interface{}
13
+ EventProcessed chan struct{}
14
15
16
//nolint:golint,stylecheck
0 commit comments