-
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
xds: env var protection for xds fallback #7483
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7483 +/- ##
==========================================
+ Coverage 81.40% 81.54% +0.14%
==========================================
Files 357 357
Lines 27243 27259 +16
==========================================
+ Hits 22176 22229 +53
+ Misses 3850 3826 -24
+ Partials 1217 1204 -13
|
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.
LGTM
// TODO(easwars): Default value of "GRPC_EXPERIMENTAL_XDS_FALLBACK" | ||
// env var is currently false. When the default is changed to true, | ||
// explicitly set it to false here. |
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.
optional: explicitly state what the test expects?
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.
This whole test is expected to be run with the env var set to false. This is stated in the name of the test and the top-level comment.
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.
i meant
origFallbackEnv := envconfig.XDSFallbackSupport
envconfig.XDSFallbackSupport = false
defer func() { envconfig.XDSFallbackSupport = origFallbackEnv }()
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.
Ah sorry. Should have done that. But now, I will just wait for the default value to change before doing that :)
Fixes #7479
#a71-xds-fallback
RELEASE NOTES: none