Skip to content

Commit f991418

Browse files
committed
Tweak EP routingtype check
Signed-off-by: jukie <[email protected]>
1 parent b72cbae commit f991418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/gatewayapi/translator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ func (t *Translator) IsServiceRouting(envoyProxy *egv1a1.EnvoyProxy, btpRoutingT
541541
}
542542

543543
// Fall back to EnvoyProxy RoutingType
544-
if envoyProxy != nil && envoyProxy.Spec.RoutingType != nil && *envoyProxy.Spec.RoutingType != egv1a1.EndpointRoutingType {
544+
if envoyProxy != nil && envoyProxy.Spec.RoutingType != nil && *envoyProxy.Spec.RoutingType == egv1a1.ServiceRoutingType {
545545
return true
546546
}
547547
return false

0 commit comments

Comments
 (0)