File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ import reactor.core.Disposable
43
43
import reactor.core.publisher.Flux
44
44
import reactor.core.scheduler.Schedulers
45
45
import java.time.Clock
46
- import java.util.UUID
47
46
import java.util.concurrent.BlockingQueue
48
47
import java.util.concurrent.Executor
49
48
import java.util.concurrent.ExecutorService
@@ -226,8 +225,7 @@ class ControlPlane private constructor(
226
225
groupChangeWatcher,
227
226
executorGroup,
228
227
cachedProtoResourcesSerializer,
229
- System .getProperty(properties.envoy.controlPlaneIdentifierEnv) ? : UUID .randomUUID().toString()
230
-
228
+ properties.envoy.controlPlaneIdentifier
231
229
)
232
230
}
233
231
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ package pl.allegro.tech.servicemesh.envoycontrol
5
5
import pl.allegro.tech.servicemesh.envoycontrol.server.ServerProperties
6
6
import pl.allegro.tech.servicemesh.envoycontrol.snapshot.SnapshotProperties
7
7
import pl.allegro.tech.servicemesh.envoycontrol.synchronization.SyncProperties
8
+ import java.util.UUID
8
9
9
10
class EnvoyControlProperties {
10
11
var server = ServerProperties ()
@@ -15,7 +16,7 @@ class EnvoyControlProperties {
15
16
16
17
class EnvoyProperties {
17
18
var snapshot = SnapshotProperties ()
18
- var controlPlaneIdentifierEnv = " HOST "
19
+ var controlPlaneIdentifier = UUID .randomUUID().toString()
19
20
}
20
21
21
22
class ServiceFilters {
You can’t perform that action at this time.
0 commit comments