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 c7a6f73 commit bd2a662
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 @@ -95,9 +95,11 @@ func (k k8s) RunCRSCreationMonitoring(eventChan chan k8ssync.SyncDataEvent, stop
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 bd2a662

Please # to comment.