Skip to content

Commit

Permalink
shouldAuditGlobalSnapshot property (#402)
Browse files Browse the repository at this point in the history
* shouldAuditGlobalSnapshot property
  • Loading branch information
matb4r authored Dec 13, 2023
1 parent 977567b commit c256699
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
### Changed
- Added possibility to add response header for weighted secondary cluster

## [0.20.4]

### Changed
- Fix `shouldAuditGlobalSnapshot` property

## [0.20.3]

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,11 @@ class ControlPlane private constructor(
}

fun withSnapshotChangeAuditor(snapshotChangeAuditor: SnapshotChangeAuditor): ControlPlaneBuilder {
this.snapshotChangeAuditor = snapshotChangeAuditor
if (properties.envoy.snapshot.shouldAuditGlobalSnapshot) {
this.snapshotChangeAuditor = snapshotChangeAuditor
} else {
this.snapshotChangeAuditor = NoopSnapshotChangeAuditor
}
return this
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class SnapshotProperties {
var deltaXdsEnabled = false
var retryPolicy = RetryPolicyProperties()
var tcpDumpsEnabled: Boolean = true
var shouldAuditGlobalSnapshot: Boolean = true
}

class MetricsProperties {
Expand Down

0 comments on commit c256699

Please sign in to comment.