Skip to content

Commit

Permalink
shouldAuditGlobalSnapshot property
Browse files Browse the repository at this point in the history
  • Loading branch information
matb4r committed Dec 12, 2023
1 parent c4a0609 commit 2f3e2b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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 2f3e2b9

Please sign in to comment.