Skip to content

Commit 8942c35

Browse files
committed
Handle duplicate kinds in listener allowed kinds
1 parent 77ca292 commit 8942c35

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/controller/state/graph/gateway_listener.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,9 @@ func getAndValidateListenerSupportedKinds(listener v1.Listener) (
301301
}
302302
// Use kind as key for uniqueness
303303
key := string(kind.Kind)
304+
if kind.Group != nil {
305+
key = string(*kind.Group) + "/" + key
306+
}
304307
if _, exists := unique[key]; !exists {
305308
unique[key] = struct{}{}
306309
supportedKinds = append(supportedKinds, kind)

0 commit comments

Comments
 (0)