Add enable_private_path_for_google_cloud_services field to google_sql_database_instance resource#6986
Conversation
…le_sql_database_instance`
|
Hello! I am a robot who works on Magic Modules PRs. I've detected that you're a community contributor. @roaks3, a repository maintainer, has been assigned to assist you and help review your changes. ❓ First time contributing? Click here for more detailsYour assigned reviewer will help review your code by:
You can help make sure that review is quick by running local tests and ensuring they're passing in between each push you make to your PR's branch. Also, try to leave a comment with each push you make, as pushes generally don't generate emails. If your reviewer doesn't get back to you within a week after your most recent change, please feel free to leave a comment on the issue asking them to take a look! In the absence of a dedicated review dashboard most maintainers manage their pending reviews through email, and those will sometimes get lost in their inbox. |
c9bfae4 to
b7a602a
Compare
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 89 insertions(+), 11 deletions(-)) |
Tests analyticsTotal tests: Errors occurred during REPLAYING mode. Please fix them to complete your PR |
…for-google-services
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 89 insertions(+), 11 deletions(-)) |
Tests analyticsTotal tests: Errors occurred during REPLAYING mode. Please fix them to complete your PR |
…for-google-services
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 89 insertions(+), 11 deletions(-)) |
Tests analyticsTotal tests: Errors occurred during REPLAYING mode. Please fix them to complete your PR |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 89 insertions(+), 11 deletions(-)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccSqlDatabaseInstance_settings_basic|TestAccSqlDatabaseInstance_settings_secondary|TestAccSqlDatabaseInstance_basicMSSQL|TestAccSqlDatabaseInstance_basic_with_user_labels|TestAccFirebaserulesRelease_BasicRelease|TestAccContainerCluster_withInvalidGatewayApiConfigChannel|TestAccComposerEnvironment_UpdateComposerV2|TestAccComposerEnvironment_ComposerV2|TestAccSqlDatabaseInstance_updateReadReplicaWithBinaryLogEnabled|TestAccSqlDatabaseInstance_Timezone|TestAccSqlDatabaseInstance_ActiveDirectory|TestAccSqlDatabaseInstance_withPrivateNetwork_withoutAllocatedIpRange|TestAccSqlDatabaseInstance_mysqlMajorVersionUpgrade|TestAccSqlDatabaseInstance_PointInTimeRecoveryEnabled|TestAccSqlDatabaseInstance_authNets|TestAccSqlDatabaseInstance_settingsDowngrade|TestAccSqlDatabaseInstance_settings_upgrade|TestAccSqlDatabaseInstance_settings_deletionProtection|TestAccSqlDatabaseInstance_settings_deletionProtectionEnabled |
|
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
2297c75 to
5cc8402
Compare
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 100 insertions(+), 11 deletions(-)) |
5cc8402 to
a86ce99
Compare
…for-google-services
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 101 insertions(+), 11 deletions(-)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccRegionInstanceGroupManager_stateful|TestAccComputeForwardingRule_update|TestAccFrameworkProviderMeta_setModuleName|TestAccDataSourceDnsRecordSet_basic |
|
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
…PathForGoogleCloudServices into an existing test case step
…ad request error for invalid combination of parameters returned from the SQL Admin API
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 52 insertions(+), 15 deletions(-)) |
6a62246 to
1a52f7b
Compare
e24f1d4 to
db229bf
Compare
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 52 insertions(+), 15 deletions(-)) |
Tests analyticsTotal tests: Errors occurred during REPLAYING mode. Please fix them to complete your PR |
db229bf to
3fd6f1d
Compare
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 3 files changed, 52 insertions(+), 15 deletions(-)) |
Tests analyticsTotal tests: Action takenTriggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed testsTestAccFirebaserulesRelease_BasicRelease|TestAccRegionInstanceGroupManager_stateful|TestAccApigeeAddonsConfig_apigeeAddonsTestExample|TestAccSqlDatabaseInstance_withPrivateNetwork_withoutAllocatedIpRange|TestAccFrameworkProviderMeta_setModuleName|TestAccDataSourceDnsRecordSet_basic |
|
Tests passed during RECORDING mode: Tests failed during RECORDING mode: Please fix these to complete your PR |
roaks3
left a comment
There was a problem hiding this comment.
LGTM, I just tweaked the release note to be sql instead of cloudsql
|
Thank you. |
…sql_database_instance` resource (GoogleCloudPlatform#6986) * Add `enable_private_path_for_google_cloud_services` property to `google_sql_database_instance` * Add a test case for third-party tests * Add usage examples * Connect with the VCR test * Fix test * Add note * Make fail-safe * format * Upgrade the tier of POSTGRES instances for faster instance creation * Fix type error * Also upgrade mysql tier to non shared core in another tiimeout sensitive flaky test * Revert "Also upgrade mysql tier to non shared core in another timeout sensitive flaky test" This reverts commit 9c2cb79. * Revert "Upgrade the tier of POSTGRES instances for faster instance creation" This reverts commit 52e8a4a. * Merge TestAccSqlDatabaseInstance_withPrivateNetwork_withEnablePrivatePathForGoogleCloudServices into an existing test case step * Remove the custom pre-apply validation logic and let users face the bad request error for invalid combination of parameters returned from the SQL Admin API * Remove an extra blank line * Revert unnecessary edit to the no-longer-used go template file * Fix indent * Revert unnecessary edit to mmv1/products/sql/api.yaml
…sql_database_instance` resource (GoogleCloudPlatform#6986) * Add `enable_private_path_for_google_cloud_services` property to `google_sql_database_instance` * Add a test case for third-party tests * Add usage examples * Connect with the VCR test * Fix test * Add note * Make fail-safe * format * Upgrade the tier of POSTGRES instances for faster instance creation * Fix type error * Also upgrade mysql tier to non shared core in another tiimeout sensitive flaky test * Revert "Also upgrade mysql tier to non shared core in another timeout sensitive flaky test" This reverts commit 9c2cb79. * Revert "Upgrade the tier of POSTGRES instances for faster instance creation" This reverts commit 52e8a4a. * Merge TestAccSqlDatabaseInstance_withPrivateNetwork_withEnablePrivatePathForGoogleCloudServices into an existing test case step * Remove the custom pre-apply validation logic and let users face the bad request error for invalid combination of parameters returned from the SQL Admin API * Remove an extra blank line * Revert unnecessary edit to the no-longer-used go template file * Fix indent * Revert unnecessary edit to mmv1/products/sql/api.yaml
This PR adds a new field
enable_private_path_for_google_cloud_services(settings.ip_configuration.enable_private_path_for_google_cloud_services) to thegoogle_sql_database_instanceresource.The Cloud SQL for MySQL and PostgreSQL now supports a new IP configuration option,
enablePrivatePathForGoogleCloudServices.https://cloud.google.com/sql/docs/release-notes#December_15_2022
Before this new GA feature was introduced, we needed to enable a public IP for Cloud SQL instances for BigQuery Data Transfer Service to reach Cloud SQL. This is no longer needed.
The Golang
google.golang.org/api/sqladmin/v1SDK supports theIpConfiguration.EnablePrivatePathForGoogleCloudServicesfield since v0.104.0.https://pkg.go.dev/google.golang.org/api@v0.104.0/sqladmin/v1#IpConfiguration
The version of the Go library
google.golang.org/apithat this repository currently uses is v0.102.0. So this PR is blocked by PR #6962, which upgrades the library to v0.105.0.If this PR is for Terraform, I acknowledge that I have:
make testandmake lintto ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)