Skip to content

Commit 7eeef03

Browse files
committed
fix: added missing validations
1 parent 9bf7720 commit 7eeef03

File tree

2 files changed

+145
-0
lines changed

2 files changed

+145
-0
lines changed

modules/backend/metadata.display.yaml

Lines changed: 139 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,37 @@ 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+
code:
88+
name: code
89+
title: Code
90+
enumValueLabels:
91+
- label: 300
92+
value: 300
93+
- label: 301
94+
value: 301
95+
- label: 308
96+
value: 308
97+
- label: 404
98+
value: 404
99+
- label: 405
100+
value: 405
101+
- label: 410
102+
value: 410
103+
- label: 421
104+
value: 421
105+
- label: 451
106+
value: 451
107+
- label: 501
108+
value: 501
109+
ttl:
110+
name: ttl
111+
title: Ttl
112+
min: 0
113+
max: 1800
61114
cache_key_policy:
62115
name: cache_key_policy
63116
title: Cache Key Policy
@@ -93,6 +146,8 @@ spec:
93146
connection_draining_timeout_sec:
94147
name: connection_draining_timeout_sec
95148
title: Connection Draining Timeout Sec
149+
min: 0
150+
max: 3600
96151
custom_request_headers:
97152
name: custom_request_headers
98153
title: Custom Request Headers
@@ -143,10 +198,45 @@ spec:
143198
value: UTILIZATION
144199
- label: CUSTOM_METRICS
145200
value: CUSTOM_METRICS
201+
capacity_scaler:
202+
name: capacity_scaler
203+
title: Capacity Scaler
204+
min: 0.0
205+
max: 1.0
206+
max_utilization:
207+
name: max_utilization
208+
title: Max Utilization
209+
min: 0.0
210+
max: 1.0
146211
health_check:
147212
name: health_check
148213
title: Health Check
149214
properties:
215+
port:
216+
name: port
217+
title: Port
218+
min: 1
219+
max: 65535
220+
check_interval_sec:
221+
name: check_interval_sec
222+
title: Check Interval Sec
223+
min: 1
224+
max: 300
225+
timeout_sec:
226+
name: timeout_sec
227+
title: Timeout Sec
228+
min: 1
229+
max: 300
230+
healthy_threshold:
231+
name: healthy_threshold
232+
title: Healthy Threshold
233+
min: 1
234+
max: 10
235+
unhealthy_threshold:
236+
name: unhealthy_threshold
237+
title: Unhealthy Threshold
238+
min: 1
239+
max: 10
150240
host:
151241
name: host
152242
title: Host
@@ -246,6 +336,12 @@ spec:
246336
log_config:
247337
name: log_config
248338
title: Log Config
339+
properties:
340+
sample_rate:
341+
name: sample_rate
342+
title: Sample Rate
343+
min: 0.0
344+
max: 1.0
249345
name:
250346
name: name
251347
title: Name
@@ -254,6 +350,47 @@ spec:
254350
outlier_detection:
255351
name: outlier_detection
256352
title: Outlier Detection
353+
properties:
354+
consecutive_errors:
355+
name: consecutive_errors
356+
title: Consecutive Errors
357+
min: 1
358+
consecutive_gateway_failure:
359+
name: consecutive_gateway_failure
360+
title: Consecutive Gateway Failure
361+
min: 1
362+
enforcing_consecutive_errors:
363+
name: enforcing_consecutive_errors
364+
title: Enforcing Consecutive Errors
365+
min: 0
366+
base_ejection_time:
367+
name: base_ejection_time
368+
title: Base Ejection Time
369+
properties:
370+
seconds:
371+
name: seconds
372+
title: Seconds
373+
min: 0
374+
max: 315576000000
375+
nanos:
376+
name: nanos
377+
title: Nanos
378+
min: 0
379+
max: 999999999
380+
interval:
381+
name: interval
382+
title: Interval
383+
properties:
384+
seconds:
385+
name: seconds
386+
title: Seconds
387+
min: 0
388+
max: 315576000000
389+
nanos:
390+
name: nanos
391+
title: Nanos
392+
min: 0
393+
max: 999999999
257394
port_name:
258395
name: port_name
259396
title: Port Name
@@ -329,3 +466,5 @@ spec:
329466
timeout_sec:
330467
name: timeout_sec
331468
title: Timeout Sec
469+
min: 1
470+
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)