Skip to content
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

feat: implement support for Trusted Partner Cloud #1552

Merged
merged 6 commits into from
Jan 31, 2024
Merged

Conversation

alexander-fenster
Copy link
Contributor

@alexander-fenster alexander-fenster commented Jan 31, 2024

Client libraries will start passing universeDomain to createStub method for both gRPC and REST transports. Perform some validation as required.

Related: googleapis/google-auth-library-nodejs#1732

@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Jan 31, 2024
@alexander-fenster alexander-fenster added kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Jan 31, 2024
@yoshi-kokoro yoshi-kokoro removed kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Jan 31, 2024
@alexander-fenster alexander-fenster merged commit d51218c into main Jan 31, 2024
21 checks passed
@release-please release-please bot mentioned this pull request Jan 31, 2024
gcf-merge-on-green bot pushed a commit that referenced this pull request Jan 31, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>4.3.0</summary>

## [4.3.0](https://togithub.com/googleapis/gax-nodejs/compare/v4.2.1...v4.3.0) (2024-01-31)


### Features

* implement support for Trusted Partner Cloud ([#1552](https://togithub.com/googleapis/gax-nodejs/issues/1552)) ([d51218c](https://togithub.com/googleapis/gax-nodejs/commit/d51218c23d4afe437285a55a44a39f64bdb3736d))


### Bug Fixes

* do not throw DeprecationWarnings for legacy retry behavior ([#1551](https://togithub.com/googleapis/gax-nodejs/issues/1551)) ([2f39306](https://togithub.com/googleapis/gax-nodejs/commit/2f39306a441ce08374fe069ab1e1892871715a77))
</details>

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
@release-please release-please bot mentioned this pull request Feb 13, 2024
Comment on lines +414 to +425
if (!options.universeDomain) {
options.universeDomain = 'googleapis.com';
}
if (options.universeDomain) {
const universeFromAuth = await this.auth.getUniverseDomain();
if (universeFromAuth && options.universeDomain !== universeFromAuth) {
throw new Error(
`The configured universe domain (${options.universeDomain}) does not match the universe domain found in the credentials (${universeFromAuth}). ` +
"If you haven't configured the universe domain explicitly, googleapis.com is the default."
);
}
}

Choose a reason for hiding this comment

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

await this.auth.getUniverseDomain() is called even if there is no universe domain configured in the options (because it then falls back to googleapis.com) which takes a considerable amount of time. In my case around 300ms. Should it really work that way? @alexander-fenster

This change slows down my project testing setup a lot because each test-bigtable creation takes around 300ms longer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants