Skip to content

Conversation

@psung
Copy link
Contributor

@psung psung commented Aug 13, 2025

Description

Checklist

Readiness

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

Style

Testing

Intended location

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

rebecca-pete and others added 13 commits July 30, 2025 12:42
Add a `test.yaml` file for the `mysql_instance_replica_pool/main.tf` file.
Create `mysql_instance_replica_pool` folder.

Add a MySQL `main.tf` file with Terraform samples related to  the read pool feature. Operations include the following:

* Create a read pool
* Convert a read replica to a read pool
* Convert a read pool to a read replica
* Update read pool node count
* Edit read pool configuration

Add a corresponding `test.yaml` file.
Create `postgres_instance_read_pool` folder.

Add a PostgreSQL `main.tf` file with Terraform samples related to  the read pool feature. Operations include the following:

* Create a read pool
* Convert a read replica to a read pool
* Convert a read pool to a read replica
* Update read pool node count
* Edit read pool configuration

Add a corresponding `test.yaml` file.
@psung psung changed the title MySQL and PG samples for Cloud SQL Read Pool feat(cloud_sql): add MySQL and PG samples for Read Pool Aug 14, 2025
@psung psung marked this pull request as ready for review August 14, 2025 04:58
@psung psung requested review from a team as code owners August 14, 2025 04:58
@snippet-bot
Copy link

snippet-bot bot commented Aug 14, 2025

Here is the summary of changes.

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

This was referenced Aug 14, 2025
@glasnt glasnt mentioned this pull request Aug 14, 2025
11 tasks
@glasnt
Copy link
Contributor

glasnt commented Aug 14, 2025

/gcbrun

Copy link
Contributor

@glasnt glasnt left a comment

Choose a reason for hiding this comment

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

Most things here look okay, apart from some cleanup.

Given this sample is not terraform apply'd as part of testing, can you please confirm the Read Pool functionality works with the latest versions of MySQL and PostgreSQL provided by Cloud SQL, then I can apply those changes and merge this PR.

@psung
Copy link
Contributor Author

psung commented Aug 14, 2025

Yes, Read Pool is supported on MySQL 8.4 as well as PG 17. The other suggested changes look fine to me too.

@glasnt
Copy link
Contributor

glasnt commented Aug 14, 2025

/gcbrun

@glasnt glasnt merged commit 7411376 into terraform-google-modules:main Aug 14, 2025
5 checks passed
niharika-98 pushed a commit to niharika-98/terraform-docs-samples that referenced this pull request Sep 7, 2025
…ogle-modules#886)

* Create test.yaml

Add a `test.yaml` file for the `mysql_instance_replica_pool/main.tf` file.

* Create main.tf

Create `mysql_instance_replica_pool` folder.

Add a MySQL `main.tf` file with Terraform samples related to  the read pool feature. Operations include the following:

* Create a read pool
* Convert a read replica to a read pool
* Convert a read pool to a read replica
* Update read pool node count
* Edit read pool configuration

Add a corresponding `test.yaml` file.

* Create test.yaml

* Create main.tf

* Delete cloud_sql/mysql_instance_replica_pool/test.yaml

* Delete mysql_instance_replica_pool/main.tf

* Create main.tf

Create `postgres_instance_read_pool` folder.

Add a PostgreSQL `main.tf` file with Terraform samples related to  the read pool feature. Operations include the following:

* Create a read pool
* Convert a read replica to a read pool
* Convert a read pool to a read replica
* Update read pool node count
* Edit read pool configuration

Add a corresponding `test.yaml` file.

* Create test.yaml

* Retain only the creation sample

* Move samples to cloud_sql subdir

* Remove 'create' from names as it's implied

* terraform fmt

* remove CI aroundarounds, update metadata name

* Update database versions to latest

---------

Co-authored-by: Rebecca Peterson <[email protected]>
Co-authored-by: Katie McLaughlin <[email protected]>
Co-authored-by: Katie McLaughlin <[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