Repository navigation
[DRAFT] fix(bigtable): improve alternate universe support - #19192
Draft
daniel-sanche wants to merge 5 commits into
Draft
daniel-sanche wants to merge 5 commits into
daniel-sanche wants to merge 5 commits into
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the Bigtable client to properly resolve admin endpoints and universe domains, establishing a clear precedence order between client options, admin client options, and environment variables. It also ensures that the BigtableMetricsExporter is disabled when a custom API endpoint is set or when the client is configured outside the default Google Cloud universe. Comprehensive unit tests have been added to validate these changes. I have no further feedback to provide as there are no review comments.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improves support for non-default universes:
_resolve_admin_endpointto read universe_domain from admin_client_options, then client_options, then environment variable, and uses it to populate api_endpoint_resolve_admin_client_optionsto attach the chosen universe_domain back to the options sent to admin clients, soclient.instance_admin_client.universe_domainreturns the expected value