Skip to content

Commit

Permalink
BUG: be able to watch ingress.v1.haproxy.org if the CRD is created af…
Browse files Browse the repository at this point in the history
…ter Ingress Controller start up

This bug is specific to CE version.
  • Loading branch information
hdurand0710 committed May 27, 2024
1 parent 312a9ec commit 1a6365e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/k8s/crs-monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,11 @@ func (k k8s) RunCRSCreationMonitoring(eventChan chan SyncDataEvent, stop chan st
continue
}
}
if _, ok := k.crs["core.haproxy.org/v1alpha2 - "+groupKind.Kind]; ok {
// we have already created watchers for this CRD
continue
if groupKind.Group == "core.haproxy.org" {
if _, ok := k.crs["core.haproxy.org/v1alpha2 - "+groupKind.Kind]; ok {
// we have already created watchers for this CRD
continue
}
}
informersSyncedEvent := &[]cache.InformerSynced{}
for _, namespace := range k.whiteListedNS {
Expand Down

0 comments on commit 1a6365e

Please sign in to comment.