Skip to content

Commit 174e5a6

Browse files
committed
delta xds property
1 parent bdcdd3e commit 174e5a6

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

docs/configuration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ Property
8282
**envoy-control.envoy.snapshot.max-host-ttl** | The TTL for hosts that are unused. Hosts that have not been used in the configured time interval will be purged | 300s
8383
**envoy-control.envoy.snapshot.rate-limit.domain** | Domain name for ratelimit service. | rl
8484
**envoy-control.envoy.snapshot.rate-limit.service-name** | ratelimit GRPC service name | ratelimit-grpc
85+
**envoy-control.envoy.snapshot.delta-xds-enabled** | Enable detla xds | false
8586

8687

8788
## Permissions

envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/snapshot/SnapshotProperties.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class SnapshotProperties {
3232
var jwt = JwtFilterProperties()
3333
var requireServiceName = false
3434
var rateLimit = RateLimitProperties()
35+
var deltaXdsEnabled = false
3536
}
3637

3738
class MetricsProperties {

envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/snapshot/resource/clusters/EnvoyClustersFactory.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ class EnvoyClustersFactory(
370370
.setResourceApiVersion(ApiVersion.V3)
371371
.setApiConfigSource(
372372
ApiConfigSource.newBuilder()
373-
.setApiType(ApiConfigSource.ApiType.GRPC)
373+
.setApiType(if (properties.deltaXdsEnabled) ApiConfigSource.ApiType.DELTA_GRPC else ApiConfigSource.ApiType.GRPC)
374374
.setTransportApiVersion(ApiVersion.V3)
375375
.addGrpcServices(
376376
0, GrpcService.newBuilder().setEnvoyGrpc(

envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/snapshot/resource/listeners/filters/HttpConnectionManagerFactory.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class HttpConnectionManagerFactory(
136136

137137
private fun apiConfigSource(): ApiConfigSource {
138138
return ApiConfigSource.newBuilder()
139-
.setApiType(ApiConfigSource.ApiType.GRPC)
139+
.setApiType(if (snapshotProperties.deltaXdsEnabled) ApiConfigSource.ApiType.DELTA_GRPC else ApiConfigSource.ApiType.GRPC)
140140
.setTransportApiVersion(ApiVersion.V3)
141141
.addGrpcServices(
142142
GrpcService.newBuilder()

0 commit comments

Comments
 (0)