Skip to content

Commit 736fcb3

Browse files
authored
fix: added missing validations (#273)
1 parent c8b937e commit 736fcb3

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

metadata.display.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,18 @@ spec:
4646
title: Dead Letter Topic
4747
regexValidation: "^projects/([a-z][a-z0-9-]{4,28}[a-z0-9])/topics/([a-z0-9-._~%+]{1,255})$"
4848
validation: "ID must start with a letter, and contain only the following characters: letters, numbers, dashes (-), periods (.), underscores (_), tildes (~), percents (%) or plus signs (+). Cannot start with goog. ID must be at most 255 characters long."
49+
ack_deadline_seconds:
50+
name: ack_deadline_seconds
51+
title: Acknowledge Deadline Seconds
52+
min: 10
53+
max: 600
54+
subtext: The number of seconds the subscriber has to acknowledge the message. Minimum 10 seconds, maximum 600 seconds.
55+
max_delivery_attempts:
56+
name: max_delivery_attempts
57+
title: Maximum Delivery Attempts
58+
min: 5
59+
max: 100
60+
subtext: The maximum number of delivery attempts. Must be between 5 and 100.
4961
cloud_storage_subscriptions:
5062
name: cloud_storage_subscriptions
5163
title: Cloud Storage Subscriptions
@@ -65,6 +77,18 @@ spec:
6577
title: Dead Letter Topic
6678
regexValidation: "^projects/([a-z][a-z0-9-]{4,28}[a-z0-9])/topics/([a-z0-9\\-._~%+]{1,255})$"
6779
validation: "ID must start with a letter, and contain only the following characters: letters, numbers, dashes (-), periods (.), underscores (_), tildes (~), percents (%) or plus signs (+). Cannot start with goog. ID must be at most 255 characters long."
80+
ack_deadline_seconds:
81+
name: ack_deadline_seconds
82+
title: Acknowledge Deadline Seconds
83+
min: 10
84+
max: 600
85+
subtext: The number of seconds the subscriber has to acknowledge the message. Minimum 10 seconds, maximum 600 seconds.
86+
max_delivery_attempts:
87+
name: max_delivery_attempts
88+
title: Maximum Delivery Attempts
89+
min: 5
90+
max: 100
91+
subtext: The maximum number of delivery attempts. Must be between 5 and 100.
6892
create_subscriptions:
6993
name: create_subscriptions
7094
title: Create Subscriptions
@@ -105,6 +129,18 @@ spec:
105129
title: Service Account
106130
regexValidation: "^[a-z][a-z0-9-]{4,28}[a-z0-9]@[a-z][a-z0-9-]{4,28}[a-z0-9]\\.iam\\.gserviceaccount\\.com$"
107131
validation: "Service account must be a valid email address in the format: SA_NAME@PROJECT_ID.iam.gserviceaccount.com."
132+
ack_deadline_seconds:
133+
name: ack_deadline_seconds
134+
title: Acknowledge Deadline Seconds
135+
min: 10
136+
max: 600
137+
subtext: The number of seconds the subscriber has to acknowledge the message. Minimum 10 seconds, maximum 600 seconds.
138+
max_delivery_attempts:
139+
name: max_delivery_attempts
140+
title: Maximum Delivery Attempts
141+
min: 5
142+
max: 100
143+
subtext: The maximum number of delivery attempts. Must be between 5 and 100.
108144
push_subscriptions:
109145
name: push_subscriptions
110146
title: Push Subscriptions
@@ -129,6 +165,18 @@ spec:
129165
title: OIDC Service Account Email
130166
regexValidation: "^[a-z][a-z0-9-]{4,28}[a-z0-9]@[a-z][a-z0-9-]{4,28}[a-z0-9]\\.iam\\.gserviceaccount\\.com$"
131167
validation: "OIDC service account email must be a valid email address in the format: SA_NAME@PROJECT_ID.iam.gserviceaccount.com."
168+
ack_deadline_seconds:
169+
name: ack_deadline_seconds
170+
title: Acknowledge Deadline Seconds
171+
min: 10
172+
max: 600
173+
subtext: The number of seconds the subscriber has to acknowledge the message. Minimum 10 seconds, maximum 600 seconds.
174+
max_delivery_attempts:
175+
name: max_delivery_attempts
176+
title: Maximum Delivery Attempts
177+
min: 5
178+
max: 100
179+
subtext: The maximum number of delivery attempts. Must be between 5 and 100.
132180
schema:
133181
name: schema
134182
title: Schema

0 commit comments

Comments
 (0)