Skip to content

[DRAFT] fix(bigtable): improve alternate universe support - #19192

Draft
daniel-sanche wants to merge 5 commits into
mainfrom
b588992371_universe_validation
Draft

daniel-sanche wants to merge 5 commits into
mainfrom
b588992371_universe_validation

Conversation

@daniel-sanche

Copy link
Copy Markdown
Contributor

Improves support for non-default universes:

  • data client:
    • Disables client-side metrics when running outside default universe
  • legacy client:
    • adds _resolve_admin_endpoint to read universe_domain from admin_client_options, then client_options, then environment variable, and uses it to populate api_endpoint
    • adds _resolve_admin_client_options to attach the chosen universe_domain back to the options sent to admin clients, so client.instance_admin_client.universe_domain returns the expected value

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant