dubbo: support wildcard match for dubbo interface (#15121)

Support wildcard match、suffix match and prefix match for dubbo interface name. Check #14765 get more information.

Risk Level: Low
Testing: Unit Test
Fixes #14765

Signed-off-by: wbpcode <comems@msn.com>

Mirrored from https://github.com/envoyproxy/envoy @ 9c2d5360635b46cc6ce4832ac84a9c324162629f
pull/624/head
data-plane-api(Azure Pipelines) 4 years ago
parent 702c9b6c7c
commit ca2c14293e
  1. 10
      envoy/extensions/filters/network/dubbo_proxy/v3/route.proto
  2. 10
      envoy/extensions/filters/network/dubbo_proxy/v4alpha/route.proto

@ -26,7 +26,15 @@ message RouteConfiguration {
// The name of the route configuration. Reserved for future use in asynchronous route discovery.
string name = 1;
// The interface name of the service.
// The interface name of the service. Wildcard interface are supported in the suffix or prefix form.
// e.g. ``*.methods.add`` will match ``com.dev.methods.add``, ``com.prod.methods.add``, etc.
// ``com.dev.methods.*`` will match ``com.dev.methods.add``, ``com.dev.methods.update``, etc.
// Special wildcard ``*`` matching any interface.
//
// .. note::
//
// The wildcard will not match the empty string.
// e.g. ``*.methods.add`` will match ``com.dev.methods.add`` but not ``.methods.add``.
string interface = 2;
// Which group does the interface belong to.

@ -26,7 +26,15 @@ message RouteConfiguration {
// The name of the route configuration. Reserved for future use in asynchronous route discovery.
string name = 1;
// The interface name of the service.
// The interface name of the service. Wildcard interface are supported in the suffix or prefix form.
// e.g. ``*.methods.add`` will match ``com.dev.methods.add``, ``com.prod.methods.add``, etc.
// ``com.dev.methods.*`` will match ``com.dev.methods.add``, ``com.dev.methods.update``, etc.
// Special wildcard ``*`` matching any interface.
//
// .. note::
//
// The wildcard will not match the empty string.
// e.g. ``*.methods.add`` will match ``com.dev.methods.add`` but not ``.methods.add``.
string interface = 2;
// Which group does the interface belong to.

Loading…
Cancel
Save