Skip to content

feat(gcp): current region methods #421

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

feat(gcp): current region methods #421

wants to merge 2 commits into from

Conversation

kevmoo
Copy link
Collaborator

@kevmoo kevmoo commented Jul 6, 2023

  • feat(gcp): current region methods
  • region hacking generalization

Copy link

@prefanatic prefanatic left a comment

Choose a reason for hiding this comment

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

Just some small documentation nits.

/// For context, see:
/// * https://cloud.google.com/functions/docs/env-var
/// * https://cloud.google.com/compute/docs/gcloud-compute#default_project
/// * https://github.com/GoogleContainerTools/gcp-auth-webhook/blob/08136ca171fe5713cc70ef822c911fbd3a1707f5/server.go#L38-L44

Choose a reason for hiding this comment

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

This particular GitHub reference is erroneous from my previous commit; looks like it's carried forward from the project-id definition, and doesn't reference any region related environment variables.

Comment on lines +22 to +23
/// A set of typical environment variables that are likely to represent the
/// current Google Cloud instance region.

Choose a reason for hiding this comment

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

Suggested change
/// A set of typical environment variables that are likely to represent the
/// current Google Cloud instance region.
/// A [Project ID](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
/// that represents the current Google Cloud Project.

Comment on lines +42 to +43
/// A set of typical environment variables that are likely to represent the
/// current Google Cloud instance region.

Choose a reason for hiding this comment

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

Suggested change
/// A set of typical environment variables that are likely to represent the
/// current Google Cloud instance region.
/// A [Region](https://cloud.google.com/compute/docs/regions-zones#identifying_a_region_or_zone)
/// that represents the current Google Cloud instance region.

@kevmoo kevmoo changed the title region hacking feat(gcp): current region methods Jul 17, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants