Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
Updated circuit breaking to use envoy v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Jont828 committed Jul 30, 2020
1 parent 7912a7c commit 0c1a096
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/envoy/cds/backpressure.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func enableBackpressure(meshSpec smi.MeshSpec, remoteCluster *xds_cluster.Cluste
if len(backpressures) > 0 {
log.Trace().Msgf("Backpressure Spec: %+v", backpressures[0].Spec)

remoteCluster.CircuitBreakers = &envoy_api_v2_cluster.CircuitBreakers{
remoteCluster.CircuitBreakers = &xds_cluster.CircuitBreakers{
Thresholds: makeThresholds(backpressures[0].Spec),
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/envoy/cds/thresholds.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
backpressure "github.com/openservicemesh/osm/experimental/pkg/apis/policy/v1alpha1"
)

func makeThresholds(spec backpressure.BackpressureSpec) []*envoy_api_v2_cluster.CircuitBreakers_Thresholds {
func makeThresholds(spec backpressure.BackpressureSpec) []*xds_cluster.CircuitBreakers_Thresholds {

threshold := &xds_cluster.CircuitBreakers_Thresholds{}

Expand Down

0 comments on commit 0c1a096

Please sign in to comment.