diff --git a/proxy/v1/config/route_rule.proto b/proxy/v1/config/route_rule.proto index 87ff3571..7749bf3f 100644 --- a/proxy/v1/config/route_rule.proto +++ b/proxy/v1/config/route_rule.proto @@ -66,12 +66,17 @@ package istio.proxy.v1.config; // "reviews" service to version "v1" can be specified as follows: // // destination: reviews.default.svc.cluster.local +// name: my-rule // route: // - tags: // version: v1 // weight: 100 // message RouteRule { + // REQUIRED: Route rules have unique names to allow multiple rules + // for the same destination, e.g. "my-rule". + string name = 11; + // REQUIRED: Destination uniquely identifies the destination associated // with this routing rule. This field is applicable for hostname-based // resolution for HTTP traffic as well as IP-based resolution for @@ -130,6 +135,7 @@ message RouteRule { // contains a "cookie" with value "user=jason", // // destination: ratings.default.svc.cluster.local +// name: my-rule // match: // source: reviews.default.svc.cluster.local // sourceTags: @@ -181,6 +187,7 @@ message MatchCondition { // "v1". // // destination: reviews.default.svc.cluster.local +// name: my-rule // route: // - tags: // version: v2 @@ -228,6 +235,7 @@ message L4MatchAttributes { // /v1/bookRatings provided by the bookratings service. // // destination: ratings.default.svc.cluster.local +// name: my-rule // match: // httpHeaders: // uri: @@ -254,6 +262,7 @@ message HTTPRedirect { // ratings service before making the actual API call. // // destination: ratings.default.svc.cluster.local +// name: my-rule // match: // httpHeaders: // uri: @@ -290,6 +299,7 @@ message StringMatch { // 10 second timeout for calls to the ratings:v1 service // // destination: ratings.default.svc.cluster.local +// name: my-rule // route: // - tags: // version: v1 @@ -320,6 +330,7 @@ message HTTPTimeout { // calling ratings:v1 service, with a 2s timeout per retry attempt. // // destination: ratings.default.svc.cluster.local +// name: my-rule // route: // - tags: // version: v1