Skip to content

Commit 78f20a8

Browse files
committed
remove System.getProperty
1 parent d836f03 commit 78f20a8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,7 @@ class ControlPlane private constructor(
226226
groupChangeWatcher,
227227
executorGroup,
228228
cachedProtoResourcesSerializer,
229-
System.getProperty(properties.envoy.controlPlaneIdentifierEnv) ?: UUID.randomUUID().toString()
230-
229+
properties.envoy.controlPlaneIdentifier
231230
)
232231
}
233232

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package pl.allegro.tech.servicemesh.envoycontrol
55
import pl.allegro.tech.servicemesh.envoycontrol.server.ServerProperties
66
import pl.allegro.tech.servicemesh.envoycontrol.snapshot.SnapshotProperties
77
import pl.allegro.tech.servicemesh.envoycontrol.synchronization.SyncProperties
8+
import java.util.UUID
89

910
class EnvoyControlProperties {
1011
var server = ServerProperties()
@@ -15,7 +16,7 @@ class EnvoyControlProperties {
1516

1617
class EnvoyProperties {
1718
var snapshot = SnapshotProperties()
18-
var controlPlaneIdentifierEnv = "HOST"
19+
var controlPlaneIdentifier = UUID.randomUUID().toString()
1920
}
2021

2122
class ServiceFilters {

0 commit comments

Comments
 (0)