Skip to content

Commit

Permalink
Remove stale GRPCRoute workaround
Browse files Browse the repository at this point in the history
As envoyproxy#950 is fixed
Signed-off-by: muyuan0 <127020730+muyuan0@users.noreply.github.com>
  • Loading branch information
muyuan0 committed Mar 14, 2023
1 parent ef8e01d commit 27323b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/gatewayapi/contexts.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,8 @@ func (l *ListenerContext) AttachedRoutes() int32 {

func (l *ListenerContext) AllowsKind(kind v1beta1.RouteGroupKind) bool {
for _, allowed := range l.gateway.Status.Listeners[l.listenerStatusIdx].SupportedKinds {
// Remove GRPCRoute check once https://github.com/envoyproxy/gateway/issues/950 is fixed
if GroupDerefOr(allowed.Group, "") == GroupDerefOr(kind.Group, "") &&
(allowed.Kind == kind.Kind || (string(kind.Kind) == KindGRPCRoute && string(allowed.Kind) == KindHTTPRoute)) {
allowed.Kind == kind.Kind {
return true
}
}
Expand Down

0 comments on commit 27323b0

Please sign in to comment.