Skip to content

Commit 401366a

Browse files
committed
Fix deprecated valkey props
1 parent 17848b1 commit 401366a

File tree

8 files changed

+183
-13
lines changed

8 files changed

+183
-13
lines changed

modules/redis-cluster/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Check the [example/](https://github.com/terraform-google-modules/terraform-googl
5959

6060
| Name | Description |
6161
|------|-------------|
62-
| discovery\_endpoints | Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported |
62+
| endpoints | Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported |
6363
| id | The redis cluster instance ID |
6464
| psc\_connections | PSC connections for discovery of the cluster topology and accessing the cluster |
6565
| psc\_service\_attachments | The PSC service attachments of the cluster |

modules/redis-cluster/metadata.display.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,7 @@ spec:
9494
zone_distribution_config_zone:
9595
name: zone_distribution_config_zone
9696
title: Zone Distribution Config Zone
97+
runtime:
98+
outputs:
99+
discovery_endpoints:
100+
visibility: VISIBILITY_ROOT

modules/redis-cluster/metadata.yaml

Lines changed: 175 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,16 +156,190 @@ spec:
156156
varType: list(string)
157157
defaultValue: []
158158
outputs:
159-
- name: discovery_endpoints
159+
- name: endpoints
160160
description: Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported
161+
type:
162+
- list
163+
- - object
164+
- address: string
165+
port: number
166+
psc_config:
167+
- list
168+
- - object
169+
- network: string
161170
- name: id
162171
description: The redis cluster instance ID
172+
type: string
163173
- name: psc_connections
164174
description: PSC connections for discovery of the cluster topology and accessing the cluster
175+
type:
176+
- list
177+
- - object
178+
- address: string
179+
forwarding_rule: string
180+
network: string
181+
project_id: string
182+
psc_connection_id: string
165183
- name: psc_service_attachments
166184
description: The PSC service attachments of the cluster
185+
type:
186+
- list
187+
- - object
188+
- connection_type: string
189+
service_attachment: string
167190
- name: redis_cluster
168191
description: The redis cluster created
192+
type:
193+
- object
194+
- authorization_mode: string
195+
automated_backup_config:
196+
- list
197+
- - object
198+
- fixed_frequency_schedule:
199+
- list
200+
- - object
201+
- start_time:
202+
- list
203+
- - object
204+
- hours: number
205+
retention: string
206+
backup_collection: string
207+
create_time: string
208+
cross_cluster_replication_config:
209+
- list
210+
- - object
211+
- cluster_role: string
212+
membership:
213+
- list
214+
- - object
215+
- primary_cluster:
216+
- list
217+
- - object
218+
- cluster: string
219+
uid: string
220+
secondary_clusters:
221+
- list
222+
- - object
223+
- cluster: string
224+
uid: string
225+
primary_cluster:
226+
- list
227+
- - object
228+
- cluster: string
229+
uid: string
230+
secondary_clusters:
231+
- list
232+
- - object
233+
- cluster: string
234+
uid: string
235+
update_time: string
236+
deletion_protection_enabled: bool
237+
discovery_endpoints:
238+
- list
239+
- - object
240+
- address: string
241+
port: number
242+
psc_config:
243+
- list
244+
- - object
245+
- network: string
246+
gcs_source:
247+
- list
248+
- - object
249+
- uris:
250+
- set
251+
- string
252+
id: string
253+
kms_key: string
254+
maintenance_policy:
255+
- list
256+
- - object
257+
- create_time: string
258+
update_time: string
259+
weekly_maintenance_window:
260+
- list
261+
- - object
262+
- day: string
263+
duration: string
264+
start_time:
265+
- list
266+
- - object
267+
- hours: number
268+
minutes: number
269+
nanos: number
270+
seconds: number
271+
maintenance_schedule:
272+
- list
273+
- - object
274+
- end_time: string
275+
schedule_deadline_time: string
276+
start_time: string
277+
managed_backup_source:
278+
- list
279+
- - object
280+
- backup: string
281+
name: string
282+
node_type: string
283+
persistence_config:
284+
- list
285+
- - object
286+
- aof_config:
287+
- list
288+
- - object
289+
- append_fsync: string
290+
mode: string
291+
rdb_config:
292+
- list
293+
- - object
294+
- rdb_snapshot_period: string
295+
rdb_snapshot_start_time: string
296+
precise_size_gb: number
297+
project: string
298+
psc_configs:
299+
- list
300+
- - object
301+
- network: string
302+
psc_connections:
303+
- list
304+
- - object
305+
- address: string
306+
forwarding_rule: string
307+
network: string
308+
project_id: string
309+
psc_connection_id: string
310+
psc_service_attachments:
311+
- list
312+
- - object
313+
- connection_type: string
314+
service_attachment: string
315+
redis_configs:
316+
- map
317+
- string
318+
region: string
319+
replica_count: number
320+
shard_count: number
321+
size_gb: number
322+
state: string
323+
state_info:
324+
- list
325+
- - object
326+
- update_info:
327+
- list
328+
- - object
329+
- target_replica_count: number
330+
target_shard_count: number
331+
timeouts:
332+
- object
333+
- create: string
334+
delete: string
335+
update: string
336+
transit_encryption_mode: string
337+
uid: string
338+
zone_distribution_config:
339+
- list
340+
- - object
341+
- mode: string
342+
zone: string
169343
requirements:
170344
roles:
171345
- level: Project

modules/redis-cluster/outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ output "id" {
1919
value = google_redis_cluster.redis_cluster.id
2020
}
2121

22-
output "discovery_endpoints" {
22+
output "endpoints" {
2323
description = "Endpoints created on each given network, for Redis clients to connect to the cluster. Currently only one endpoint is supported"
24-
value = google_redis_cluster.redis_cluster.discovery_endpoints
24+
value = google_redis_cluster.redis_cluster.endpoints
2525
}
2626

2727
output "psc_connections" {

modules/valkey/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ module "valkey_cluster" {
7070

7171
| Name | Description |
7272
|------|-------------|
73-
| discovery\_endpoints | (Deprecated) Endpoints created on each given network, for valkey clients to connect to the cluster. Currently only one endpoint is supported. Use endpoints instead |
7473
| endpoints | Endpoints for the instance |
7574
| id | The valkey cluster instance ID |
7675
| psc\_auto\_connection | Detailed information of a PSC connection that is created through service connectivity automation |

modules/valkey/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ resource "google_memorystore_instance" "valkey_cluster" {
2121
engine_version = var.engine_version
2222
mode = var.mode
2323

24-
desired_psc_auto_connections {
24+
desired_auto_created_endpoints {
2525
network = "projects/${coalesce(var.network_project, var.project_id)}/global/networks/${var.network}"
2626
project_id = var.project_id
2727
}

modules/valkey/metadata.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,6 @@ spec:
169169
start_time_nanos = optional(string)
170170
}))
171171
outputs:
172-
- name: discovery_endpoints
173-
description: (Deprecated) Endpoints created on each given network, for valkey clients to connect to the cluster. Currently only one endpoint is supported. Use endpoints instead
174172
- name: endpoints
175173
description: Endpoints for the instance
176174
- name: id

modules/valkey/outputs.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ output "id" {
1919
value = google_memorystore_instance.valkey_cluster.id
2020
}
2121

22-
output "discovery_endpoints" {
23-
description = "(Deprecated) Endpoints created on each given network, for valkey clients to connect to the cluster. Currently only one endpoint is supported. Use endpoints instead"
24-
value = google_memorystore_instance.valkey_cluster.discovery_endpoints
25-
}
26-
2722
output "psc_connections" {
2823
description = "(Deprecated) PSC connections for discovery of the cluster topology and accessing the cluster. Use psc_auto_connection instead"
2924
value = google_memorystore_instance.valkey_cluster.psc_auto_connections

0 commit comments

Comments
 (0)