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

fix(endpoints): add _go suffix to regions #4904

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

OremGLG
Copy link
Contributor

@OremGLG OremGLG commented Dec 24, 2024

Description

Add _go suffix to all regions

Fixes b/347825430

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

  • I have followed Contributing Guidelines from CONTRIBUTING.MD
  • Tests pass: go test -v ./.. (see Testing)
  • Code formatted: gofmt (see Formatting)
  • Vetting pass: go vet (see Formatting)
  • These samples need a new API enabled in testing projects to pass (let us know which ones)
  • These samples need a new/updated env vars in testing projects set to pass (let us know which ones)
  • This sample adds a new sample directory, and I updated the CODEOWNERS file with the codeowners for this sample
  • This sample adds a new Product API, and I updated the Blunderbuss issue/PR auto-assigner with the codeowners for this sample
  • Please merge this PR for me once it is approved

Copy link

@code-review-assist code-review-assist bot left a comment

Choose a reason for hiding this comment

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

Hi team,

I'm currently reviewing this pull request and will have a full review ready in a few minutes. In the meantime, here's a quick summary to get everyone up to speed:

This pull request, submitted by OremGLG, aims to fix issue b/347825430 by adding a _go suffix to region identifiers in the endpoints/getting-started/k8s/esp_echo_http.yaml file. This appears to be a renaming operation to better align with Go conventions or to address a naming conflict.

Specifically, the changes involve modifying the Kubernetes YAML configuration file (esp_echo_http.yaml). The following sections have been updated:

  • [START endpoints_secret_1] and [END endpoints_secret_1]: Renamed to [START endpoints_secret_1_go] and [END endpoints_secret_1_go] respectively.
  • [START endpoints_service] and [END endpoints_service]: Renamed to [START endpoints_service_go] and [END endpoints_service_go] respectively.
  • [START endpoints_secret_2] and [END endpoints_secret_2]: Renamed to [START endpoints_secret_2_go] and [END endpoints_secret_2_go] respectively.

The changes are localized to lines 41-46 and 58-66 of esp_echo_http.yaml. No other files were modified.

I'll provide a more detailed review shortly, but this should give everyone a good overview of the changes.


A little haiku to brighten your day:

Code flows like a stream,
Fixes merge, a gentle hum,
Progress finds its way.

@product-auto-label product-auto-label bot added api: endpoints Issues related to the Cloud Endpoints API. samples Issues that are directly related to samples. labels Dec 24, 2024
Copy link

@code-review-assist code-review-assist bot left a comment

Choose a reason for hiding this comment

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

This pull request adds the "_go" suffix to specific lines within the endpoints/getting-started/k8s/esp_echo_http.yaml file. This change appears to be related to differentiating regions for Go samples, as indicated by the title and description. The changes themselves are minimal and straightforward. However, it's important to ensure consistency across all relevant files and documentation to avoid confusion. I've included some specific recommendations below.

I've studied the Contributing Guidelines and will be referencing them in this review.

Comment on lines +41 to +46
# [START endpoints_secret_1_go]
volumes:
- name: service-account-creds
secret:
secretName: service-account-creds
# [END endpoints_secret_1]
# [START endpoints_service]
# [END endpoints_secret_1_go]

Choose a reason for hiding this comment

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

low

The addition of the _go suffix is consistent with the PR's goal. However, consider adding a brief comment explaining the purpose of this suffix. This will improve the readability and maintainability of the code, as suggested in the Contributing Guidelines.

Also, per the contributing guidelines, ensure there is a newline after the end of a start/end region comment in this YAML file.

Suggested change
# [START endpoints_secret_1_go]
volumes:
- name: service-account-creds
secret:
secretName: service-account-creds
# [END endpoints_secret_1]
# [START endpoints_service]
# [END endpoints_secret_1_go]
# [START endpoints_secret_1_go]
# This region is specific to Go samples.
volumes:
- name: service-account-creds
secret:
secretName: service-account-creds
# [END endpoints_secret_1_go]

Comment on lines +61 to +66
# [START endpoints_secret_2_go]
volumeMounts:
- mountPath: /etc/nginx/creds
name: service-account-creds
readOnly: true
# [END endpoints_secret_2]
# [END endpoints_secret_2_go]

Choose a reason for hiding this comment

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

low

A short comment explaining the purpose of the _go suffix would be beneficial for maintainability, as recommended by the Contributing Guidelines.

Also, per the contributing guidelines, ensure there is a newline after the end of a start/end region comment in this YAML file.

Suggested change
# [START endpoints_secret_2_go]
volumeMounts:
- mountPath: /etc/nginx/creds
name: service-account-creds
readOnly: true
# [END endpoints_secret_2]
# [END endpoints_secret_2_go]
# [START endpoints_secret_2_go]
# This region is specific to Go samples.
volumeMounts:
- mountPath: /etc/nginx/creds
name: service-account-creds
readOnly: true
# [END endpoints_secret_2_go]

@OremGLG OremGLG marked this pull request as ready for review December 27, 2024 16:53
@OremGLG OremGLG requested review from a team as code owners December 27, 2024 16:53
Copy link

snippet-bot bot commented Dec 27, 2024

Here is the summary of changes.

You are about to add 3 region tags.
You are about to delete 3 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: endpoints Issues related to the Cloud Endpoints API. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant