Skip to content

Commit 2555725

Browse files
authored
Merge pull request #2655 from murgatroid99/grpc-js-xds_1.10_deexperimentalize
grpc-js-xds: De-experimentalize tested features and update feature list
2 parents f70c322 + 322b165 commit 2555725

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

packages/grpc-js-xds/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,8 @@ const client = new MyServiceClient('xds:///example.com:123');
3030
- [Client Status Discovery Service](https://github.com/grpc/proposal/blob/master/A40-csds-support.md)
3131
- [Outlier Detection](https://github.com/grpc/proposal/blob/master/A50-xds-outlier-detection.md)
3232
- [xDS Retry Support](https://github.com/grpc/proposal/blob/master/A44-xds-retry.md)
33-
- [xDS Aggregate and Logical DNS Clusters](https://github.com/grpc/proposal/blob/master/A37-xds-aggregate-and-logical-dns-clusters.md)'
33+
- [xDS Aggregate and Logical DNS Clusters](https://github.com/grpc/proposal/blob/master/A37-xds-aggregate-and-logical-dns-clusters.md)
3434
- [xDS Federation](https://github.com/grpc/proposal/blob/master/A47-xds-federation.md) (Currently experimental, enabled by environment variable `GRPC_EXPERIMENTAL_XDS_FEDERATION`)
35+
- [xDS Custom Load Balancer Configuration](https://github.com/grpc/proposal/blob/master/A52-xds-custom-lb-policies.md) (Custom load balancer registration not currently supported)
36+
- [xDS Ring Hash LB Policy](https://github.com/grpc/proposal/blob/master/A42-xds-ring-hash-lb-policy.md)
37+
- [`pick_first` via xDS](https://github.com/grpc/proposal/blob/master/A62-pick-first.md#pick_first-via-xds-1) (Currently experimental, enabled by environment variable `GRPC_EXPERIMENTAL_PICKFIRST_LB_CONFIG`)

packages/grpc-js-xds/gulpfile.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,9 @@ const compile = checkTask(() => execNpmCommand('compile'));
6262

6363
const runTests = checkTask(() => {
6464
process.env.GRPC_EXPERIMENTAL_XDS_FEDERATION = 'true';
65-
process.env.GRPC_EXPERIMENTAL_XDS_CUSTOM_LB_CONFIG = 'true';
6665
process.env.GRPC_EXPERIMENTAL_PICKFIRST_LB_CONFIG = 'true';
67-
if (Number(process.versions.node.split('.')[0]) > 14) {
68-
process.env.GRPC_XDS_EXPERIMENTAL_ENABLE_RING_HASH = 'true';
66+
if (Number(process.versions.node.split('.')[0]) <= 14) {
67+
process.env.GRPC_XDS_EXPERIMENTAL_ENABLE_RING_HASH = 'false';
6968
}
7069
return gulp.src(`${outDir}/test/**/*.js`)
7170
.pipe(mocha({reporter: 'mocha-jenkins-reporter',

packages/grpc-js-xds/src/environment.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@
1515
*
1616
*/
1717

18+
/* Switches to enable or disable experimental features. If the default is
19+
* 'true', the feature is enabled by default, if the default is 'false' the
20+
* feature is disabled by default. */
1821
export const EXPERIMENTAL_FAULT_INJECTION = (process.env.GRPC_XDS_EXPERIMENTAL_FAULT_INJECTION ?? 'true') === 'true';
1922
export const EXPERIMENTAL_OUTLIER_DETECTION = (process.env.GRPC_EXPERIMENTAL_ENABLE_OUTLIER_DETECTION ?? 'true') === 'true';
2023
export const EXPERIMENTAL_RETRY = (process.env.GRPC_XDS_EXPERIMENTAL_ENABLE_RETRY ?? 'true') === 'true';
2124
export const EXPERIMENTAL_FEDERATION = (process.env.GRPC_EXPERIMENTAL_XDS_FEDERATION ?? 'false') === 'true';
22-
export const EXPERIMENTAL_CUSTOM_LB_CONFIG = (process.env.GRPC_EXPERIMENTAL_XDS_CUSTOM_LB_CONFIG ?? 'false') === 'true';
23-
export const EXPERIMENTAL_RING_HASH = (process.env.GRPC_XDS_EXPERIMENTAL_ENABLE_RING_HASH ?? 'false') === 'true';
25+
export const EXPERIMENTAL_CUSTOM_LB_CONFIG = (process.env.GRPC_EXPERIMENTAL_XDS_CUSTOM_LB_CONFIG ?? 'true') === 'true';
26+
export const EXPERIMENTAL_RING_HASH = (process.env.GRPC_XDS_EXPERIMENTAL_ENABLE_RING_HASH ?? 'true') === 'true';
2427
export const EXPERIMENTAL_PICK_FIRST = (process.env.GRPC_EXPERIMENTAL_PICKFIRST_LB_CONFIG ?? 'false') === 'true';

0 commit comments

Comments
 (0)