Skip to content

Commit

Permalink
add global outlier detection
Browse files Browse the repository at this point in the history
Signed-off-by: yangyang <[email protected]>
  • Loading branch information
yangyy93 committed Oct 18, 2023
1 parent 1d23f20 commit 42d1ceb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/dag/httpproxy_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ type HTTPProxyProcessor struct {
// configurable and off by default in order to support the feature
// without requiring all existing test cases to change.
SetSourceMetadataOnRoutes bool

// GlobalOutlierDetection defines route-service's Global Outlier Detection configuration.
GlobalOutlierDetection *contour_api_v1.OutlierDetection
}

// Run translates HTTPProxies into DAG objects and
Expand Down Expand Up @@ -981,7 +984,7 @@ func (p *HTTPProxyProcessor) computeRoutes(
return nil
}

outlierDetection, err := outlierDetectionPolicy(service.OutlierDetection)
outlierDetection, err := outlierDetectionPolicy(p.GlobalOutlierDetection, service.OutlierDetection)
if err != nil {
validCond.AddErrorf(contour_api_v1.ConditionTypeOutlierDetectionError, "OutlierDetectionInvalid",
"%s on outlier detection", err)
Expand Down

0 comments on commit 42d1ceb

Please sign in to comment.