Skip to content

Conversation

@loeng2023
Copy link
Contributor

@loeng2023 loeng2023 commented Jan 26, 2025

Description

Fixes 383556956

Note: If you are not associated with Google, open an issue for discussion before submitting a pull request.

Checklist

Readiness

  • Yes, merge this PR after it is approved
  • No, don't merge this PR after it is approved

Style

Testing

Intended location

  • Yes, this sample will be (or already is) included on cloud.google.com
    Location(s):

  • No, this sample won't be included on cloud.google.com
    Reason:

API enablement

  • If the sample needs an API enabled to pass testing, I have added the service to the Test setup file

Review

  • If this sample adds a new directory, I have added codeowners to the CODEOWNERS file

@loeng2023 loeng2023 requested a review from a team as a code owner January 26, 2025 22:25
@snippet-bot
Copy link

snippet-bot bot commented Jan 26, 2025

Here is the summary of changes.

You are about to add 6 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

Copy link
Contributor

@jackwotherspoon jackwotherspoon left a comment

Choose a reason for hiding this comment

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

Region tags must be globally unique, there are a lot of files here that are duplicating region tags from other files.

Let's remove the duplicate ones, that way the code samples in our docs will have one source of truth 😄

@glasnt
Copy link
Contributor

glasnt commented Feb 3, 2025

/gcbrun

Copy link
Contributor

@jackwotherspoon jackwotherspoon left a comment

Choose a reason for hiding this comment

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

I think we still need to be more careful with the region tags. We do not need to add region tags around pieces of code that are identical from one MySQL file to another MySQL file and which already has region tags. This PR should focus on adding region tags solely around code pieces that are new logic and contain PSA + PSC functionality.

Suggestions should be applied to Postgres and SQL Server as well.

This will make the code much more maintainable in the future and prevent having three different region tags around identical code blocks, leading to one source of truth for docs.

Copy link
Contributor

@jackwotherspoon jackwotherspoon left a comment

Choose a reason for hiding this comment

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

LGTM ✅

@jackwotherspoon
Copy link
Contributor

/gcbrun

@loeng2023 loeng2023 requested a review from glasnt February 4, 2025 22:02
@jackwotherspoon
Copy link
Contributor

/gcbrun

@glasnt glasnt merged commit 02b38d6 into terraform-google-modules:main Feb 5, 2025
5 checks passed
@loeng2023 loeng2023 deleted the bug-383556956 branch February 5, 2025 17:57
niharika-98 pushed a commit to niharika-98/terraform-docs-samples that referenced this pull request Sep 7, 2025
…m-google-modules#808)

* feat(cloud_sql): Add cloud sql psa+psc connectivity samples

* fix region tags

* Fix license year

* remove unnecessary region tags

* add short description at beginning

* minor change

* avoid use auto-subnet ip as static ip

* fix lint

---------

Co-authored-by: Jack Wotherspoon <[email protected]>
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