Skip to content

Commit bbbdd01

Browse files
committed
resolve conflicts
1 parent be03a6f commit bbbdd01

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
99

1010
## [0.19.19]
1111

12+
### Changed
13+
- Added support for Delta XDS
14+
15+
## [0.19.19]
16+
1217
### Changed
1318
- Add default access log filter configuration
1419

@@ -31,8 +36,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
3136

3237
### Changed
3338
- Added flags for lua filters
34-
- Added support for Delta XDS
35-
39+
-
3640
## [0.19.14]
3741

3842
### Changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ allprojects {
4747

4848
project.ext.versions = [
4949
kotlin : '1.6.10',
50-
java_controlplane : '0.1.33-delta-xds-non-breaking-slonka-hash-bytes-SNAPSHOT',
50+
java_controlplane : '0.1.35',
5151
spring_boot : '2.3.4.RELEASE',
5252
grpc : '1.21.0',
5353
jaxb : '2.3.1',

envoy-control-core/src/test/kotlin/pl/allegro/tech/servicemesh/envoycontrol/EnvoySnapshotFactoryTest.kt

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import pl.allegro.tech.servicemesh.envoycontrol.snapshot.EnvoySnapshotFactory
2929
import pl.allegro.tech.servicemesh.envoycontrol.snapshot.GlobalSnapshot
3030
import pl.allegro.tech.servicemesh.envoycontrol.snapshot.SnapshotProperties
3131
import pl.allegro.tech.servicemesh.envoycontrol.snapshot.SnapshotsVersions
32-
import pl.allegro.tech.servicemesh.envoycontrol.snapshot.globalSnapshot
3332
import pl.allegro.tech.servicemesh.envoycontrol.snapshot.outgoingTimeoutPolicy
3433
import pl.allegro.tech.servicemesh.envoycontrol.snapshot.resource.clusters.EnvoyClustersFactory
3534
import pl.allegro.tech.servicemesh.envoycontrol.snapshot.resource.endpoints.EnvoyEndpointsFactory
@@ -274,14 +273,10 @@ class EnvoySnapshotFactoryTest {
274273
}
275274

276275
private fun GlobalSnapshot.withEndpoint(clusterName: String): GlobalSnapshot = copy(
277-
endpoints = SnapshotResources.create(
278-
listOf(
279-
ClusterLoadAssignment.newBuilder()
276+
endpoints = SnapshotResources.create<ClusterLoadAssignment>(listOf(ClusterLoadAssignment.newBuilder()
280277
.setClusterName(clusterName)
281278
.build()
282-
), "v1"
283-
)
284-
)
279+
), "v1").resources())
285280

286281
private fun createServicesGroup(
287282
mode: CommunicationMode = CommunicationMode.XDS,
@@ -375,11 +370,11 @@ class EnvoySnapshotFactoryTest {
375370

376371
private fun createGlobalSnapshot(vararg clusters: Cluster): GlobalSnapshot {
377372
return GlobalSnapshot(
378-
SnapshotResources.create(clusters.toList(), "pl/allegro/tech/servicemesh/envoycontrol/v3"),
373+
SnapshotResources.create<Cluster>(clusters.toList(), "pl/allegro/tech/servicemesh/envoycontrol/v3").resources(),
379374
clusters.map { it.name }.toSet(),
380-
SnapshotResources.create(emptyList(), "v1"),
375+
SnapshotResources.create<ClusterLoadAssignment>(emptyList<ClusterLoadAssignment>(), "v1").resources(),
381376
emptyMap(),
382-
SnapshotResources.create(clusters.toList(), "v3")
377+
SnapshotResources.create<Cluster>(clusters.toList(), "v3").resources()
383378
)
384379
}
385380

envoy-control-runner/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/snapshot/debug/SnapshotDebugService.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ class SnapshotDebugService(
7575
logger.warn("Global snapshot is missing")
7676
throw GlobalSnapshotNotFoundException("Global snapshot is missing")
7777
}
78-
val endpoints = globalSnapshot.endpoints
79-
.resources()[service]
78+
val endpoints = globalSnapshot.endpoints[service]
8079
if (endpoints == null) {
8180
logger.warn("Can not find $service in global snapshot")
8281
throw GlobalSnapshotNotFoundException("Service $service not found in global snapshot")

0 commit comments

Comments
 (0)