Skip to content

Commit

Permalink
remove System.getProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferdudas97 committed Jul 1, 2022
1 parent d836f03 commit 78f20a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@ class ControlPlane private constructor(
groupChangeWatcher,
executorGroup,
cachedProtoResourcesSerializer,
System.getProperty(properties.envoy.controlPlaneIdentifierEnv) ?: UUID.randomUUID().toString()

properties.envoy.controlPlaneIdentifier
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package pl.allegro.tech.servicemesh.envoycontrol
import pl.allegro.tech.servicemesh.envoycontrol.server.ServerProperties
import pl.allegro.tech.servicemesh.envoycontrol.snapshot.SnapshotProperties
import pl.allegro.tech.servicemesh.envoycontrol.synchronization.SyncProperties
import java.util.UUID

class EnvoyControlProperties {
var server = ServerProperties()
Expand All @@ -15,7 +16,7 @@ class EnvoyControlProperties {

class EnvoyProperties {
var snapshot = SnapshotProperties()
var controlPlaneIdentifierEnv = "HOST"
var controlPlaneIdentifier = UUID.randomUUID().toString()
}

class ServiceFilters {
Expand Down

0 comments on commit 78f20a8

Please sign in to comment.