Added changes for new Flexible CA mode support for Redis and Valkey Cluster#16306
Added changes for new Flexible CA mode support for Redis and Valkey Cluster#16306omanges wants to merge 1 commit intoGoogleCloudPlatform:mainfrom
Conversation
|
Hello! I am a robot. Tests will require approval from a repository maintainer to run. Googlers: For automatic test runs see go/terraform-auto-test-runs. @SirGitsalot, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
|
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.
Missing test reportYour PR includes resource fields which are not covered by any test. Resource: resource "google_memorystore_instance" "primary" {
server_ca_mode = # value needed
server_ca_pool = # value needed
}
Resource: resource "google_redis_cluster" "primary" {
server_ca_mode = # value needed
server_ca_pool = # value needed
}
|
Tests analyticsTotal tests: 61 Click here to see the affected service packages
🟢 All tests passed! View the build log |
|
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.
|
Tests analyticsTotal tests: 63 Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
SirGitsalot
left a comment
There was a problem hiding this comment.
Are the new fields live on the public API? They don't show up in the docs, which might explain the test failures (since our test runners use the public API without access to any visibility-restricted fields).
| required: false | ||
| default_from_api: true | ||
| enum_values: | ||
| - SERVER_CA_MODE_UNSPECIFIED |
There was a problem hiding this comment.
Is it possible to explicitly set this field to SERVER_CA_MODE_UNSPECIFIED? That is:
resource "google_memorystore_instance" "my_instance" {
name = "my_instance"
server_ca_mode = "SERVER_CA_MODE_UNSPECIFIED"
}From the description it sounds like the mode would get set to SERVER_CA_MODE_GOOGLE_MANAGED_PER_INSTANCE_CA since most APIs don't distinguish between "not set at all" and "set to the unspecified enum value". If that's the case you should be able to just remove the SERVER_CA_MODE_UNSPECIFIED option.
There was a problem hiding this comment.
Yeah removed SERVER_CA_MODE_UNSPECIFIED
| - name: 'serverCaPool' | ||
| type: String | ||
| description: | | ||
| The resource name of the server CA pool for an instance with SERVER_CA_MODE_CUSTOMER_MANAGED_CAS_CA |
Yeah the fields are yet to be made public |
|
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.
|
Tests analyticsTotal tests: 63 Click here to see the affected service packages
Action takenFound 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
|
🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
SirGitsalot
left a comment
There was a problem hiding this comment.
Are the new fields live on the public API? They don't show up in the docs, which might explain the test failures (since our test runners use the public API without access to any visibility-restricted fields).
Yeah the fields are yet to be made public
That definitely explains the test failures. In the test debug logs you can see the fields being set in the POST request but not being returned in the subsequent GET due to the visibility label.
This PR looks mostly done, but it will need to wait until the visibility label is removed and the API fully rolled out before to be merged.
Adding support two new CA modes BYOCA and Shared CA for TLS enabled clusters/instance