Skip to content

feat: Provide ensure_metadata and lookup_metadata_response calls#48

Merged
dazuma merged 1 commit intogoogleapis:mainfrom
dazuma:pr/metadata-object
Oct 31, 2023
Merged

feat: Provide ensure_metadata and lookup_metadata_response calls#48
dazuma merged 1 commit intogoogleapis:mainfrom
dazuma:pr/metadata-object

Conversation

@dazuma
Copy link
Contributor

@dazuma dazuma commented Oct 25, 2023

Only the second commit is relevant. The first is from #53.

This reworks the main Google::Cloud::Env class to use the accessor objects that have been implemented. It also:

@dazuma dazuma force-pushed the pr/metadata-object branch 6 times, most recently from af7078f to 2ca88cf Compare October 26, 2023 18:13
@dazuma dazuma changed the title [TESTING] Entire env refactor feat: Provide an accessor for the metadata-provided universe domain Oct 26, 2023
@dazuma dazuma force-pushed the pr/metadata-object branch from 2ca88cf to 013cead Compare October 26, 2023 18:21
@dazuma dazuma marked this pull request as ready for review October 26, 2023 18:21
@dazuma dazuma requested a review from a team October 26, 2023 18:21
@dazuma dazuma marked this pull request as draft October 27, 2023 01:41
@dazuma dazuma force-pushed the pr/metadata-object branch from 013cead to aed16a6 Compare October 31, 2023 01:22
@dazuma dazuma marked this pull request as ready for review October 31, 2023 01:29
# The default host for the metadata server
# @return [String]
#
DEFAULT_HOST = "http://169.254.169.254"
Copy link
Member

Choose a reason for hiding this comment

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

Why do we use IP instead of host_name ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To remove DNS as a source of failures and latency.

@dazuma dazuma force-pushed the pr/metadata-object branch from aed16a6 to 4d23364 Compare October 31, 2023 19:59
@dazuma dazuma force-pushed the pr/metadata-object branch from 4d23364 to 1263bfa Compare October 31, 2023 20:59
@dazuma dazuma changed the title feat: Provide an accessor for the metadata-provided universe domain feat: Provide ensure_metadata and lookup_metadata_response calls Oct 31, 2023
@dazuma dazuma merged commit c07ef20 into googleapis:main Oct 31, 2023
@dazuma dazuma deleted the pr/metadata-object branch November 1, 2023 21:26
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.

3 participants