diff --git a/envoy/extensions/filters/network/dubbo_proxy/v3/route.proto b/envoy/extensions/filters/network/dubbo_proxy/v3/route.proto index f06518c0..e255985e 100644 --- a/envoy/extensions/filters/network/dubbo_proxy/v3/route.proto +++ b/envoy/extensions/filters/network/dubbo_proxy/v3/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. diff --git a/envoy/extensions/filters/network/dubbo_proxy/v4alpha/route.proto b/envoy/extensions/filters/network/dubbo_proxy/v4alpha/route.proto index c2ff03b3..d6314279 100644 --- a/envoy/extensions/filters/network/dubbo_proxy/v4alpha/route.proto +++ b/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.