-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
base: main
Are you sure you want to change the base?
fix(endpoints): add _go suffix to regions #4904
Conversation
There was a problem hiding this 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.
There was a problem hiding this 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.
# [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] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
# [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] | |
# [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] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
# [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] | |
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.
|
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
go test -v ./..
(see Testing)gofmt
(see Formatting)go vet
(see Formatting)