Skip to content

Commit 9267bb2

Browse files
authored
fix: added missing validations (#542)
1 parent be52b2d commit 9267bb2

File tree

2 files changed

+123
-0
lines changed

2 files changed

+123
-0
lines changed

modules/backend/metadata.display.yaml

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,35 @@ spec:
3131
affinity_cookie_ttl_sec:
3232
name: affinity_cookie_ttl_sec
3333
title: Affinity Cookie Ttl Sec
34+
min: 0
35+
max: 86400
3436
backend_bucket_name:
3537
name: backend_bucket_name
3638
title: Backend Bucket Name
3739
cdn_policy:
3840
name: cdn_policy
3941
title: Cdn Policy
4042
properties:
43+
default_ttl:
44+
name: default_ttl
45+
title: Default Ttl
46+
min: 0
47+
max: 86400
48+
max_ttl:
49+
name: max_ttl
50+
title: Max Ttl
51+
min: 0
52+
max: 31622400
53+
client_ttl:
54+
name: client_ttl
55+
title: Client Ttl
56+
min: 0
57+
max: 31622400
58+
serve_while_stale:
59+
name: serve_while_stale
60+
title: Serve While Stale
61+
min: 0
62+
max: 604800
4163
signed_url_cache_max_age_sec:
4264
name: signed_url_cache_max_age_sec
4365
title: Signed URL Cache Max Age Sec
@@ -58,6 +80,15 @@ spec:
5880
title: Bypass Cache On Request Headers
5981
regexValidation: ^[A-Za-z][A-Za-z0-9-]{0,62}$
6082
validation: "Must be a valid HTTP header name: start with a letter, contain only letters [A–Z, a–z], digits [0–9], or hyphens [-], and be at most 63 characters long"
83+
negative_caching_policy:
84+
name: negative_caching_policy
85+
title: Negative Caching Policy
86+
properties:
87+
ttl:
88+
name: ttl
89+
title: Ttl
90+
min: 0
91+
max: 1800
6192
cache_key_policy:
6293
name: cache_key_policy
6394
title: Cache Key Policy
@@ -93,6 +124,8 @@ spec:
93124
connection_draining_timeout_sec:
94125
name: connection_draining_timeout_sec
95126
title: Connection Draining Timeout Sec
127+
min: 0
128+
max: 3600
96129
custom_request_headers:
97130
name: custom_request_headers
98131
title: Custom Request Headers
@@ -143,10 +176,45 @@ spec:
143176
value: UTILIZATION
144177
- label: CUSTOM_METRICS
145178
value: CUSTOM_METRICS
179+
capacity_scaler:
180+
name: capacity_scaler
181+
title: Capacity Scaler
182+
min: 0.0
183+
max: 1.0
184+
max_utilization:
185+
name: max_utilization
186+
title: Max Utilization
187+
min: 0.0
188+
max: 1.0
146189
health_check:
147190
name: health_check
148191
title: Health Check
149192
properties:
193+
port:
194+
name: port
195+
title: Port
196+
min: 1
197+
max: 65535
198+
check_interval_sec:
199+
name: check_interval_sec
200+
title: Check Interval Sec
201+
min: 1
202+
max: 300
203+
timeout_sec:
204+
name: timeout_sec
205+
title: Timeout Sec
206+
min: 1
207+
max: 300
208+
healthy_threshold:
209+
name: healthy_threshold
210+
title: Healthy Threshold
211+
min: 1
212+
max: 10
213+
unhealthy_threshold:
214+
name: unhealthy_threshold
215+
title: Unhealthy Threshold
216+
min: 1
217+
max: 10
150218
host:
151219
name: host
152220
title: Host
@@ -246,6 +314,12 @@ spec:
246314
log_config:
247315
name: log_config
248316
title: Log Config
317+
properties:
318+
sample_rate:
319+
name: sample_rate
320+
title: Sample Rate
321+
min: 0.0
322+
max: 1.0
249323
name:
250324
name: name
251325
title: Name
@@ -254,6 +328,47 @@ spec:
254328
outlier_detection:
255329
name: outlier_detection
256330
title: Outlier Detection
331+
properties:
332+
consecutive_errors:
333+
name: consecutive_errors
334+
title: Consecutive Errors
335+
min: 1
336+
consecutive_gateway_failure:
337+
name: consecutive_gateway_failure
338+
title: Consecutive Gateway Failure
339+
min: 1
340+
enforcing_consecutive_errors:
341+
name: enforcing_consecutive_errors
342+
title: Enforcing Consecutive Errors
343+
min: 0
344+
base_ejection_time:
345+
name: base_ejection_time
346+
title: Base Ejection Time
347+
properties:
348+
seconds:
349+
name: seconds
350+
title: Seconds
351+
min: 0
352+
max: 315576000000
353+
nanos:
354+
name: nanos
355+
title: Nanos
356+
min: 0
357+
max: 999999999
358+
interval:
359+
name: interval
360+
title: Interval
361+
properties:
362+
seconds:
363+
name: seconds
364+
title: Seconds
365+
min: 0
366+
max: 315576000000
367+
nanos:
368+
name: nanos
369+
title: Nanos
370+
min: 0
371+
max: 999999999
257372
port_name:
258373
name: port_name
259374
title: Port Name
@@ -329,3 +444,5 @@ spec:
329444
timeout_sec:
330445
name: timeout_sec
331446
title: Timeout Sec
447+
min: 1
448+
max: 2147483647

modules/frontend/metadata.display.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,18 @@ spec:
6262
http_keep_alive_timeout_sec:
6363
name: http_keep_alive_timeout_sec
6464
title: Http Keep Alive Timeout Sec
65+
min: 5
66+
max: 1200
6567
http_port:
6668
name: http_port
6769
title: Http Port
70+
min: 1
71+
max: 65535
6872
https_port:
6973
name: https_port
7074
title: Https Port
75+
min: 1
76+
max: 65535
7177
https_redirect:
7278
name: https_redirect
7379
title: Https Redirect

0 commit comments

Comments
 (0)