diff --git a/pkg/k8s/crs-monitor.go b/pkg/k8s/crs-monitor.go index 54fe81cc..712ffb12 100644 --- a/pkg/k8s/crs-monitor.go +++ b/pkg/k8s/crs-monitor.go @@ -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 {