Skip to content

Commit

Permalink
feat(envoy): add an envoy config snapshot test (#6121)
Browse files Browse the repository at this point in the history
* updating the envoy settings test to check the generated envoy config

* PR review comments

* fix test

* add slash
  • Loading branch information
driev authored Dec 2, 2024
1 parent 63fe390 commit 5a7912a
Show file tree
Hide file tree
Showing 27 changed files with 9,154 additions and 442 deletions.
1,072 changes: 630 additions & 442 deletions scheduler/pkg/envoy/processor/incremental_test.go

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,242 @@
[
{
"name": "pipelinegateway_http",
"type": "STRICT_DNS",
"connectTimeout": "5s",
"lbPolicy": "LEAST_REQUEST",
"loadAssignment": {
"clusterName": "pipelinegateway_http",
"endpoints": [
{
"lbEndpoints": [
{
"endpoint": {
"address": {
"socketAddress": {
"address": "pipeline",
"portValue": 2
}
}
}
}
]
}
]
},
"dnsLookupFamily": "V4_ONLY"
},
{
"name": "pipelinegateway_grpc",
"type": "STRICT_DNS",
"connectTimeout": "5s",
"lbPolicy": "LEAST_REQUEST",
"loadAssignment": {
"clusterName": "pipelinegateway_grpc",
"endpoints": [
{
"lbEndpoints": [
{
"endpoint": {
"address": {
"socketAddress": {
"address": "pipeline",
"portValue": 1
}
}
}
}
]
}
]
},
"typedExtensionProtocolOptions": {
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": {
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions",
"explicitHttpConfig": {
"http2ProtocolOptions": {}
}
}
},
"dnsLookupFamily": "V4_ONLY"
},
{
"name": "mirror_http",
"type": "STRICT_DNS",
"connectTimeout": "5s",
"lbPolicy": "LEAST_REQUEST",
"loadAssignment": {
"clusterName": "mirror_http",
"endpoints": [
{
"lbEndpoints": [
{
"endpoint": {
"address": {
"socketAddress": {
"address": "0.0.0.0",
"portValue": 9001
}
}
}
}
]
}
]
},
"dnsLookupFamily": "V4_ONLY"
},
{
"name": "mirror_grpc",
"type": "STRICT_DNS",
"connectTimeout": "5s",
"lbPolicy": "LEAST_REQUEST",
"loadAssignment": {
"clusterName": "mirror_grpc",
"endpoints": [
{
"lbEndpoints": [
{
"endpoint": {
"address": {
"socketAddress": {
"address": "0.0.0.0",
"portValue": 9001
}
}
}
}
]
}
]
},
"typedExtensionProtocolOptions": {
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": {
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions",
"explicitHttpConfig": {
"http2ProtocolOptions": {}
}
}
},
"dnsLookupFamily": "V4_ONLY"
},
{
"name": "model1_1_http",
"type": "STRICT_DNS",
"connectTimeout": "5s",
"lbPolicy": "LEAST_REQUEST",
"loadAssignment": {
"clusterName": "model1_1_http",
"endpoints": [
{
"lbEndpoints": [
{
"endpoint": {
"address": {
"socketAddress": {
"address": "server.0",
"portValue": 1234
}
}
}
}
]
}
]
},
"dnsLookupFamily": "V4_ONLY"
},
{
"name": "model1_1_grpc",
"type": "STRICT_DNS",
"connectTimeout": "5s",
"lbPolicy": "LEAST_REQUEST",
"loadAssignment": {
"clusterName": "model1_1_grpc",
"endpoints": [
{
"lbEndpoints": [
{
"endpoint": {
"address": {
"socketAddress": {
"address": "server.0",
"portValue": 0
}
}
}
}
]
}
]
},
"typedExtensionProtocolOptions": {
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": {
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions",
"explicitHttpConfig": {
"http2ProtocolOptions": {}
}
}
},
"dnsLookupFamily": "V4_ONLY"
},
{
"name": "model2_1_http",
"type": "STRICT_DNS",
"connectTimeout": "5s",
"lbPolicy": "LEAST_REQUEST",
"loadAssignment": {
"clusterName": "model2_1_http",
"endpoints": [
{
"lbEndpoints": [
{
"endpoint": {
"address": {
"socketAddress": {
"address": "server.1",
"portValue": 1234
}
}
}
}
]
}
]
},
"dnsLookupFamily": "V4_ONLY"
},
{
"name": "model2_1_grpc",
"type": "STRICT_DNS",
"connectTimeout": "5s",
"lbPolicy": "LEAST_REQUEST",
"loadAssignment": {
"clusterName": "model2_1_grpc",
"endpoints": [
{
"lbEndpoints": [
{
"endpoint": {
"address": {
"socketAddress": {
"address": "server.1",
"portValue": 0
}
}
}
}
]
}
]
},
"typedExtensionProtocolOptions": {
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": {
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions",
"explicitHttpConfig": {
"http2ProtocolOptions": {}
}
}
},
"dnsLookupFamily": "V4_ONLY"
}
]
Loading

0 comments on commit 5a7912a

Please sign in to comment.