-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
internal/envconfig: Set Custom LB Env Var to true by default #6317
Conversation
internal/envconfig/xds.go
Outdated
@@ -89,7 +89,7 @@ var ( | |||
// C2PResolverTestOnlyTrafficDirectorURI is the TD URI for testing. | |||
C2PResolverTestOnlyTrafficDirectorURI = os.Getenv("GRPC_TEST_ONLY_GOOGLE_C2P_RESOLVER_TRAFFIC_DIRECTOR_URI") | |||
// XDSCustomLBPolicy indicates whether Custom LB Policies are enabled, which | |||
// can be enabled by setting the environment variable | |||
// can be disabled by setting the environment variable | |||
// "GRPC_EXPERIMENTAL_XDS_CUSTOM_LB_CONFIG" to "true". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to "false"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
oldCustomLBSupport := envconfig.XDSCustomLBPolicy | ||
envconfig.XDSCustomLBPolicy = true | ||
defer func() { | ||
envconfig.XDSCustomLBPolicy = oldCustomLBSupport | ||
}() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably would be best to leave these in there until the env var is removed. Otherwise the tests will fail if you disable it in your environment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deleted these (by git checkout master ./) lol
This PR sets the Custom LB Env Var to true by default. This functionality has been tested in interop, and is stable.
RELEASE NOTES: