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 6320a37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ import reactor.core.Disposable
import reactor.core.publisher.Flux
import reactor.core.scheduler.Schedulers
import java.time.Clock
import java.util.UUID
import java.util.concurrent.BlockingQueue
import java.util.concurrent.Executor
import java.util.concurrent.ExecutorService
Expand Down Expand Up @@ -226,8 +225,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 6320a37

Please sign in to comment.