From 19c0d1cbd5f28f60dd096f9018bb338a3e4fd254 Mon Sep 17 00:00:00 2001 From: Cali0707 Date: Fri, 25 Oct 2024 11:48:07 -0400 Subject: [PATCH] fix: et autocreate makes eventtype id required Signed-off-by: Cali0707 --- pkg/eventtype/eventtypes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/eventtype/eventtypes.go b/pkg/eventtype/eventtypes.go index 1bf7116213c..346e936542b 100644 --- a/pkg/eventtype/eventtypes.go +++ b/pkg/eventtype/eventtypes.go @@ -99,7 +99,7 @@ func (h *EventTypeAutoHandler) AutoCreateEventType(ctx context.Context, event *e {Name: "source", Value: source.String(), Required: true}, {Name: "schemadata", Value: schema.String(), Required: true}, {Name: "specversion", Value: event.SpecVersion(), Required: true}, - {Name: "id", Required: false}, + {Name: "id", Required: true}, }, Reference: addressable, Description: "Event Type auto-created by controller",