diff --git a/pkg/graph/constructor.go b/pkg/graph/constructor.go index 374ba58edd8..0668bbdb143 100644 --- a/pkg/graph/constructor.go +++ b/pkg/graph/constructor.go @@ -247,7 +247,7 @@ func (g *Graph) fetchEventTypes(ctx context.Context, config ConstructorConfig, e if err == nil { for _, eventType := range eventTypes.Items { - if config.ShouldAddEventType(eventType) { + if config.ShouldAddEventType == nil || config.ShouldAddEventType(eventType) { err := g.AddEventType(eventType) if err != nil { return err