Skip to content

Commit 2781ed6

Browse files
arjan-baljanardhankrishna-sai
authored andcommitted
xds, pickfirst: Enable additional addresses in xDS, set new pick_first as default (grpc#8126)
1 parent 2a3bb40 commit 2781ed6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
- name: Run coverage
2020
run: go test -coverprofile=coverage.out -coverpkg=./... ./...
2121

22-
- name: Run coverage with new pickfirst
23-
run: GRPC_EXPERIMENTAL_ENABLE_NEW_PICK_FIRST=true go test -coverprofile=coverage_new_pickfirst.out -coverpkg=./... ./...
22+
- name: Run coverage with old pickfirst
23+
run: GRPC_EXPERIMENTAL_ENABLE_NEW_PICK_FIRST=false go test -coverprofile=coverage_old_pickfirst.out -coverpkg=./... ./...
2424

2525
- name: Upload coverage to Codecov
2626
uses: codecov/codecov-action@v4

internal/envconfig/envconfig.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ var (
5151
// xDS server in the list of server configs will be used.
5252
XDSFallbackSupport = boolFromEnv("GRPC_EXPERIMENTAL_XDS_FALLBACK", true)
5353
// NewPickFirstEnabled is set if the new pickfirst leaf policy is to be used
54-
// instead of the exiting pickfirst implementation. This can be enabled by
54+
// instead of the exiting pickfirst implementation. This can be disabled by
5555
// setting the environment variable "GRPC_EXPERIMENTAL_ENABLE_NEW_PICK_FIRST"
56-
// to "true".
57-
NewPickFirstEnabled = boolFromEnv("GRPC_EXPERIMENTAL_ENABLE_NEW_PICK_FIRST", false)
56+
// to "false".
57+
NewPickFirstEnabled = boolFromEnv("GRPC_EXPERIMENTAL_ENABLE_NEW_PICK_FIRST", true)
5858
)
5959

6060
func boolFromEnv(envVar string, def bool) bool {

internal/envconfig/xds.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ var (
5656

5757
// XDSDualstackEndpointsEnabled is true if gRPC should read the
5858
// "additional addresses" in the xDS endpoint resource.
59-
XDSDualstackEndpointsEnabled = boolFromEnv("GRPC_EXPERIMENTAL_XDS_DUALSTACK_ENDPOINTS", false)
59+
XDSDualstackEndpointsEnabled = boolFromEnv("GRPC_EXPERIMENTAL_XDS_DUALSTACK_ENDPOINTS", true)
6060

6161
// XDSSystemRootCertsEnabled is true when xDS enabled gRPC clients can use
6262
// the system's default root certificates for TLS certificate validation.

0 commit comments

Comments
 (0)