Merge pull request #2358 from murgatroid99/grpc-js-xds_pass_outlier_detection_config

grpc-js-xds: Pass along outlier detection config from CDS to child policy
This commit is contained in:
Michael Lumish 2023-02-10 13:38:30 -08:00 committed by GitHub
commit 82c8cf17e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,7 +158,8 @@ function generateDiscoveryMechanismForCluster(config: Cluster__Output): Discover
lrs_load_reporting_server_name: config.lrs_server?.self ? '' : undefined,
max_concurrent_requests: maxConcurrentRequests,
type: 'EDS',
eds_service_name: config.eds_cluster_config!.service_name === '' ? undefined : config.eds_cluster_config!.service_name
eds_service_name: config.eds_cluster_config!.service_name === '' ? undefined : config.eds_cluster_config!.service_name,
outlier_detection: translateOutlierDetectionConfig(config.outlier_detection)
};
} else {
// Logical DNS cluster