Skip to content

Commit

Permalink
Backport of mesh: provide missing domain to route configurations in P…
Browse files Browse the repository at this point in the history
…roxyStateTemplate into release/1.17.0 (#19305)

* backport of commit 21c8b5e

* backport of commit 925d695

---------

Co-authored-by: Nitya Dhanushkodi <nitya@hashicorp.com>
  • Loading branch information
zalimeni and ndhanushkodi committed Oct 20, 2023
1 parent b1c8a92 commit 6a39ad2
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ func (b *Builder) buildDestination(
b.addRoute(routeName, &pbproxystate.Route{
VirtualHosts: []*pbproxystate.VirtualHost{{
Name: routeName,
Domains: []string{"*"},
RouteRules: proxyRouteRules,
}},
})
Expand Down Expand Up @@ -185,6 +186,7 @@ func (b *Builder) buildDestination(
b.addRoute(routeName, &pbproxystate.Route{
VirtualHosts: []*pbproxystate.VirtualHost{{
Name: routeName,
Domains: []string{"*"},
RouteRules: proxyRouteRules,
}},
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,9 @@
"default/local/default/api-1:http:1.1.1.1:1234": {
"virtualHosts": [
{
"domains": [
"*"
],
"name": "default/local/default/api-1:http:1.1.1.1:1234",
"routeRules": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@
"default/local/default/api-app": {
"virtualHosts": [
{
"domains": [
"*"
],
"name": "default/local/default/api-app",
"routeRules": [
{
Expand All @@ -349,6 +352,9 @@
"default/local/default/api-app2": {
"virtualHosts": [
{
"domains": [
"*"
],
"name": "default/local/default/api-app2",
"routeRules": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@
"default/local/default/api-app": {
"virtualHosts": [
{
"domains": [
"*"
],
"name": "default/local/default/api-app",
"routeRules": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@
"default/local/default/api-app": {
"virtualHosts": [
{
"domains": [
"*"
],
"name": "default/local/default/api-app",
"routeRules": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
"endpointGroup": {
"static": {
"config": {
"connectTimeout": "6s",
"circuitBreakers": {
"upstreamLimits": {
"maxConnections": 123
}
}
},
"connectTimeout": "6s"
}
}
},
Expand All @@ -32,12 +32,12 @@
"endpointGroup": {
"static": {
"config": {
"connectTimeout": "8s",
"circuitBreakers": {
"upstreamLimits": {
"maxConnections": 123
}
}
},
"connectTimeout": "8s"
}
}
},
Expand Down Expand Up @@ -101,6 +101,7 @@
},
"listeners": [
{
"balanceConnections": "BALANCE_CONNECTIONS_EXACT",
"capabilities": [
"CAPABILITY_L4_TLS_INSPECTION"
],
Expand All @@ -110,7 +111,6 @@
"port": 20000
},
"name": "public_listener",
"balanceConnections": "BALANCE_CONNECTIONS_EXACT",
"routers": [
{
"inboundTls": {
Expand All @@ -127,7 +127,7 @@
"cluster": {
"name": "local_app:port1"
},
"maxInboundConnections": 123,
"maxInboundConnections": "123",
"statPrefix": "public_listener",
"trafficPermissions": {}
},
Expand All @@ -149,10 +149,10 @@
}
},
"l7": {
"maxInboundConnections": "123",
"route": {
"name": "public_listener:port3"
},
"maxInboundConnections": 123,
"statPrefix": "public_listener",
"staticRoute": true,
"trafficPermissions": {}
Expand Down

0 comments on commit 6a39ad2

Please sign in to comment.