-
Notifications
You must be signed in to change notification settings - Fork 286
feat(cloud_sql): add MySQL and PG samples for Read Pool #886
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
feat(cloud_sql): add MySQL and PG samples for Read Pool #886
Conversation
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.
|
Here is the summary of changes. You are about to add 2 region tags.
This comment is generated by snippet-bot.
|
|
/gcbrun |
glasnt
left a comment
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.
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.
|
Yes, Read Pool is supported on MySQL 8.4 as well as PG 17. The other suggested changes look fine to me too. |
|
/gcbrun |
…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]>
Description
Checklist
Readiness
Style
guide
Testing
I have performed tests described in the Contributing guide:
terraform applyterraform fmtcheckIntended location
Yes, this sample will be (or already is) included on cloud.google.com
Location(s): https://cloud.google.com/sql/docs/mysql/create-read-pool, https://cloud.google.com/sql/docs/postgres/create-read-pool
No, this sample won't be included on cloud.google.com
Reason:
API enablement
Review