Skip to content

Commit 00fb172

Browse files
authored
fix: added missing validations (#530)
1 parent 37139d2 commit 00fb172

File tree

1 file changed

+63
-1
lines changed

1 file changed

+63
-1
lines changed

modules/mig/metadata.display.yaml

Lines changed: 63 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ spec:
3737
name: autoscaling_cpu
3838
title: Autoscaling Cpu
3939
properties:
40+
target:
41+
name: target
42+
title: Target
43+
min: 0.0
44+
max: 1.0
4045
predictive_method:
4146
name: predictive_method
4247
title: Predictive Method
@@ -51,10 +56,21 @@ spec:
5156
autoscaling_lb:
5257
name: autoscaling_lb
5358
title: Autoscaling Lb
59+
properties:
60+
target:
61+
name: target
62+
title: Target
63+
min: 0.0
64+
max: 1.0
5465
autoscaling_metric:
5566
name: autoscaling_metric
5667
title: Autoscaling Metric
5768
properties:
69+
target:
70+
name: target
71+
title: Target
72+
min: 0.0
73+
max: 1.0
5874
type:
5975
name: type
6076
title: Type
@@ -79,9 +95,20 @@ spec:
7995
autoscaling_scale_in_control:
8096
name: autoscaling_scale_in_control
8197
title: Autoscaling Scale In Control
98+
properties:
99+
fixed_replicas:
100+
name: fixed_replicas
101+
title: Fixed Replicas
102+
min: 0
103+
percent_replicas:
104+
name: percent_replicas
105+
title: Percent Replicas
106+
min: 0
107+
max: 100
82108
cooldown_period:
83109
name: cooldown_period
84110
title: Cooldown Period
111+
min: 0
85112
distribution_policy_target_shape:
86113
name: distribution_policy_target_shape
87114
title: Distribution Policy Target Shape
@@ -113,6 +140,11 @@ spec:
113140
value: TCP
114141
- label: SSL
115142
value: SSL
143+
initial_delay_sec:
144+
name: initial_delay_sec
145+
title: Initial Delay Sec
146+
min: 0
147+
max: 3600
116148
proxy_header:
117149
name: proxy_header
118150
title: Proxy Header
@@ -121,6 +153,11 @@ spec:
121153
value: NONE
122154
- label: PROXY_V1
123155
value: PROXY_V1
156+
port:
157+
name: port
158+
title: Port
159+
min: 1
160+
max: 65535
124161
health_check_name:
125162
name: health_check_name
126163
title: Health Check Name
@@ -166,6 +203,11 @@ spec:
166203
title: Port Name
167204
regexValidation: ^[a-z]([-a-z0-9]{0,61}[a-z0-9])?$
168205
validation: Port name must be between 1 and 63 characters long, start with a lowercase letter, and can contain lowercase letters, numbers, and hyphens.
206+
port:
207+
name: port
208+
title: Port
209+
min: 1
210+
max: 65535
169211
project_id:
170212
name: project_id
171213
title: Project Id
@@ -177,10 +219,14 @@ spec:
177219
name: scaling_schedules
178220
title: Scaling Schedules
179221
properties:
222+
duration_sec:
223+
name: duration_sec
224+
title: Duration Sec
225+
min: 300
180226
schedule:
181227
name: schedule
182228
title: Schedule
183-
regexValidation: "^(*|([0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])(-([0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]))?)(,(*|([0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])(-([0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]))?))* (*|([0-9]|1[0-9]|2[0-3])(-([0-9]|1[0-9]|2[0-3]))?)(,(*|([0-9]|1[0-9]|2[0-3])(-([0-9]|1[0-9]|2[0-3]))?))* (*|([1-9]|1[0-9]|2[0-9]|3[0-1])(-([1-9]|1[0-9]|2[0-9]|3[0-1]))?)(,(*|([1-9]|1[0-9]|2[0-9]|3[0-1])(-([1-9]|1[0-9]|2[0-9]|3[0-1]))?))* (*|([1-9]|1[0-2])(-([1-9]|1[0-2]))?)(,(*|([1-9]|1[0-2])(-([1-9]|1[0-2]))?))* (*|([0-6])(-([0-6]))?)(,(*|([0-6])(-([0-6]))?))*$"
229+
regexValidation: "^([*]|([0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])(-([0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]))?)(,([*]|([0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])(-([0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]))?))* ([*]|([0-9]|1[0-9]|2[0-3])(-([0-9]|1[0-9]|2[0-3]))?)(,([*]|([0-9]|1[0-9]|2[0-3])(-([0-9]|1[0-9]|2[0-3]))?))* ([*]|([1-9]|1[0-9]|2[0-9]|3[0-1])(-([1-9]|1[0-9]|2[0-9]|3[0-1]))?)(,([*]|([1-9]|1[0-9]|2[0-9]|3[0-1])(-([1-9]|1[0-9]|2[0-9]|3[0-1]))?))* ([*]|([1-9]|1[0-2])(-([1-9]|1[0-2]))?)(,([*]|([1-9]|1[0-2])(-([1-9]|1[0-2]))?))* ([*]|([0-6])(-([0-6]))?)(,([*]|([0-6])(-([0-6]))?))*$"
184230
validation: Schedule must be in cron format.
185231
stateful_disks:
186232
name: stateful_disks
@@ -212,6 +258,7 @@ spec:
212258
target_size:
213259
name: target_size
214260
title: Target Size
261+
min: 0
215262
level: 1
216263
update_policy:
217264
name: update_policy
@@ -225,6 +272,21 @@ spec:
225272
value: PROACTIVE
226273
- label: NONE
227274
value: NONE
275+
max_surge_percent:
276+
name: max_surge_percent
277+
title: Max Surge Percent
278+
min: 0
279+
max: 100
280+
max_unavailable_percent:
281+
name: max_unavailable_percent
282+
title: Max Unavailable Percent
283+
min: 0
284+
max: 100
285+
min_ready_sec:
286+
name: min_ready_sec
287+
title: Min Ready Sec
288+
min: 0
289+
max: 3600
228290
replacement_method:
229291
name: replacement_method
230292
title: Replacement Method

0 commit comments

Comments
 (0)