Skip to content

Commit 1a6365e

Browse files
committed
BUG: be able to watch ingress.v1.haproxy.org if the CRD is created after Ingress Controller start up
This bug is specific to CE version.
1 parent 312a9ec commit 1a6365e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pkg/k8s/crs-monitor.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,11 @@ func (k k8s) RunCRSCreationMonitoring(eventChan chan SyncDataEvent, stop chan st
9494
continue
9595
}
9696
}
97-
if _, ok := k.crs["core.haproxy.org/v1alpha2 - "+groupKind.Kind]; ok {
98-
// we have already created watchers for this CRD
99-
continue
97+
if groupKind.Group == "core.haproxy.org" {
98+
if _, ok := k.crs["core.haproxy.org/v1alpha2 - "+groupKind.Kind]; ok {
99+
// we have already created watchers for this CRD
100+
continue
101+
}
100102
}
101103
informersSyncedEvent := &[]cache.InformerSynced{}
102104
for _, namespace := range k.whiteListedNS {

0 commit comments

Comments
 (0)