Skip to content

Commit 04f0973

Browse files
authored
source and gateways in match condition (#276)
* source and gateway matches * mesh * nits
1 parent 7eada33 commit 04f0973

File tree

4 files changed

+172
-150
lines changed

4 files changed

+172
-150
lines changed

routing/v1alpha2/gateway.pb.go

Lines changed: 5 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

routing/v1alpha2/gateway.proto

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ package istio.routing.v1alpha2;
8686
// - eu.bookinfo.com
8787
// gateways:
8888
// - my-gateway
89+
// - mesh # applies to all the sidecars in the mesh
8990
// http:
9091
// - match:
9192
// - headers:
@@ -109,8 +110,10 @@ package istio.routing.v1alpha2;
109110
// name: reviews.qa
110111
// weight: 20
111112
//
112-
// The following routing rule forwards traffic arriving at (external)
113-
// port 2379 from 172.17.16.* subnet to internal Mongo server on port 5555.
113+
// The following routing rule forwards traffic arriving at (external) port
114+
// 2379 from 172.17.16.0/24 subnet to internal Mongo server on port 5555. This
115+
// rule is not applicable internally in the mesh as the gateway list omits
116+
// the reserved name "mesh".
114117
//
115118
// apiVersion: config.istio.io/v1alpha2
116119
// kind: RouteRule
@@ -130,26 +133,6 @@ package istio.routing.v1alpha2;
130133
// - destination:
131134
// name: mongo.prod
132135
//
133-
// By default, if there is no wildcard, HTTP requests for unknown domains
134-
// or requests that have no matching route rule will respond with a 404. If
135-
// a specific default behavior is desired at the ingress, add a route rule
136-
// with a wildcard host and the desired backend. For example, the following
137-
// wildcard routing rule routes all traffic to homepage.prod by default.
138-
//
139-
// apiVersion: config.istio.io/v1alpha2
140-
// kind: RouteRule
141-
// metadata:
142-
// name: default-ingress
143-
// spec:
144-
// hosts:
145-
// - *
146-
// gateways:
147-
// - my-gateway
148-
// http:
149-
// - route:
150-
// - destination:
151-
// name: homepage.prod
152-
//
153136
message Gateway {
154137
// REQUIRED: A list of server specifications.
155138
repeated Server servers = 1;

0 commit comments

Comments
 (0)