Skip to content

Commit d4b8db7

Browse files
amrkk123imrannayer
andauthored
fix: adding regex validation for ip network and changing description for variables (#747)
Co-authored-by: Imran Nayer <[email protected]>
1 parent 44b558b commit d4b8db7

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

modules/mysql/metadata.display.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,13 @@ spec:
186186
ip_configuration:
187187
name: ip_configuration
188188
title: Ip Configuration
189+
properties:
190+
private_network:
191+
name: private_network
192+
title: private_network
193+
subtext: The VPC network used to enable private IP access to the Cloud SQL instance. Cannot be unset once configured.
194+
regexValidation: ^(?:http(?:s)?://.+/)?projects/((?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?)))/global/networks/((?:[a-z](?:[-a-z0-9]*[a-z0-9])?))$
195+
validation: Invalid format. Expected a valid Google Cloud network resource name, e.g. projects/{project}/global/networks/{network}.
189196
level: 1
190197
maintenance_window_day:
191198
name: maintenance_window_day

modules/postgresql/metadata.display.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,13 @@ spec:
194194
ip_configuration:
195195
name: ip_configuration
196196
title: Ip Configuration
197+
properties:
198+
private_network:
199+
name: private_network
200+
title: private_network
201+
subtext: The VPC network used to enable private IP access to the Cloud SQL instance. Cannot be unset once configured.
202+
regexValidation: ^(?:http(?:s)?://.+/)?projects/((?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?)))/global/networks/((?:[a-z](?:[-a-z0-9]*[a-z0-9])?))$
203+
validation: Invalid format. Expected a valid Google Cloud network resource name, e.g. projects/{project}/global/networks/{network}.
197204
level: 1
198205
maintenance_window_day:
199206
name: maintenance_window_day

0 commit comments

Comments
 (0)