-
Notifications
You must be signed in to change notification settings - Fork 395
Expand file tree
/
Copy pathmetadata.display.yaml
More file actions
332 lines (331 loc) · 11.6 KB
/
metadata.display.yaml
File metadata and controls
332 lines (331 loc) · 11.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: blueprints.cloud.google.com/v1alpha1
kind: BlueprintMetadata
metadata:
name: terraform-google-vm-mig-display
annotations:
config.kubernetes.io/local-config: "true"
spec:
info:
title: Managed Instance Group (MIG)
source:
repo: https://github.com/terraform-google-modules/terraform-google-vm
sourceType: git
dir: /modules/mig
ui:
input:
variables:
autoscaler_name:
name: autoscaler_name
title: Autoscaler Name
regexValidation: ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
validation: Autoscaler name must be between 1 and 63 characters long, start with a lowercase letter, and can contain lowercase letters, numbers, and hyphens.
autoscaling_cpu:
name: autoscaling_cpu
title: Autoscaling Cpu
properties:
target:
name: target
title: Target
min: 0.0
max: 1.0
predictive_method:
name: predictive_method
title: Predictive Method
enumValueLabels:
- label: NONE
value: NONE
- label: OPTIMIZE_AVAILABILITY
value: OPTIMIZE_AVAILABILITY
autoscaling_enabled:
name: autoscaling_enabled
title: Autoscaling Enabled
autoscaling_lb:
name: autoscaling_lb
title: Autoscaling Lb
properties:
target:
name: target
title: Target
min: 0.0
max: 1.0
autoscaling_metric:
name: autoscaling_metric
title: Autoscaling Metric
properties:
target:
name: target
title: Target
min: 0.0
max: 1.0
type:
name: type
title: Type
enumValueLabels:
- label: GAUGE
value: GAUGE
- label: DELTA_PER_SECOND
value: DELTA_PER_SECOND
- label: DELTA_PER_MINUTE
value: DELTA_PER_MINUTE
autoscaling_mode:
name: autoscaling_mode
title: Autoscaling Mode
enumValueLabels:
- label: "ON"
value: "ON"
- label: ONLY_SCALE_OUT
value: ONLY_SCALE_OUT
- label: "OFF"
value: "OFF"
level: 1
autoscaling_scale_in_control:
name: autoscaling_scale_in_control
title: Autoscaling Scale In Control
properties:
fixed_replicas:
name: fixed_replicas
title: Fixed Replicas
min: 0
percent_replicas:
name: percent_replicas
title: Percent Replicas
min: 0
max: 100
cooldown_period:
name: cooldown_period
title: Cooldown Period
min: 0
distribution_policy_target_shape:
name: distribution_policy_target_shape
title: Distribution Policy Target Shape
enumValueLabels:
- label: EVEN
value: EVEN
- label: BALANCED
value: BALANCED
- label: ANY
value: ANY
- label: ANY_SINGLE_ZONE
value: ANY_SINGLE_ZONE
distribution_policy_zones:
name: distribution_policy_zones
title: Distribution Policy Zones
health_check:
name: health_check
title: Health Check
properties:
type:
name: type
title: Type
enumValueLabels:
- label: HTTPS
value: HTTPS
- label: HTTP
value: HTTP
- label: TCP
value: TCP
- label: SSL
value: SSL
initial_delay_sec:
name: initial_delay_sec
title: Initial Delay Sec
min: 0
max: 3600
proxy_header:
name: proxy_header
title: Proxy Header
enumValueLabels:
- label: NONE
value: NONE
- label: PROXY_V1
value: PROXY_V1
port:
name: port
title: Port
min: 1
max: 65535
health_check_name:
name: health_check_name
title: Health Check Name
regexValidation: ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
validation: Health check name must be between 1 and 63 characters long, start with a lowercase letter, and can contain lowercase letters, numbers, and hyphens.
hostname:
name: hostname
title: Hostname
level: 1
regexValidation: ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
validation: Hostname must be between 1 and 63 characters long, start with a lowercase letter, and can contain lowercase letters, numbers, and hyphens.
instance_template:
name: instance_template
title: Instance Template
regexValidation: "^https://www.googleapis.com/compute/v1/projects/[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?/(?:global|regions/[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)/instanceTemplates/[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?$"
validation: Invalid template url format, valid format is either https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/instanceTemplates/{template_name} (regional) or https://www.googleapis.com/compute/v1/projects/{project}/global/instanceTemplates/{template_name} (global).
labels:
name: labels
title: Labels
max_replicas:
name: max_replicas
title: Max Replicas
level: 1
mig_name:
name: mig_name
title: Mig Name
regexValidation: ^[a-z][a-z0-9-]{0,61}[a-z0-9]$
validation: Use lowercase letters, numbers, and hyphens. Start with a letter and end with letter/number. Must be 63 characters or fewer.
level: 1
mig_timeouts:
name: mig_timeouts
title: Mig Timeouts
min_replicas:
name: min_replicas
title: Min Replicas
level: 1
named_ports:
name: named_ports
title: Named Ports
properties:
name:
name: name
title: Port Name
regexValidation: ^[a-z]([-a-z0-9]{0,61}[a-z0-9])?$
validation: Port name must be between 1 and 63 characters long, start with a lowercase letter, and can contain lowercase letters, numbers, and hyphens.
port:
name: port
title: Port
min: 1
max: 65535
project_id:
name: project_id
title: Project Id
level: 1
region:
name: region
title: Region
scaling_schedules:
name: scaling_schedules
title: Scaling Schedules
properties:
duration_sec:
name: duration_sec
title: Duration Sec
min: 300
schedule:
name: schedule
title: Schedule
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]))?))*$"
validation: Schedule must be in cron format.
stateful_disks:
name: stateful_disks
title: Stateful Disks
properties:
delete_rule:
name: delete_rule
title: Delete Rule
enumValueLabels:
- label: NEVER
value: NEVER
- label: ON_PERMANENT_INSTANCE_DELETION
value: ON_PERMANENT_INSTANCE_DELETION
stateful_ips:
name: stateful_ips
title: Stateful Ips
properties:
delete_rule:
name: delete_rule
title: Delete Rule
enumValueLabels:
- label: NEVER
value: NEVER
- label: ON_PERMANENT_INSTANCE_DELETION
value: ON_PERMANENT_INSTANCE_DELETION
target_pools:
name: target_pools
title: Target Pools
target_size:
name: target_size
title: Target Size
min: 0
level: 1
update_policy:
name: update_policy
title: Update Policy
properties:
instance_redistribution_type:
name: instance_redistribution_type
title: Instance Redistribution Type
enumValueLabels:
- label: PROACTIVE
value: PROACTIVE
- label: NONE
value: NONE
max_surge_percent:
name: max_surge_percent
title: Max Surge Percent
min: 0
max: 100
max_unavailable_percent:
name: max_unavailable_percent
title: Max Unavailable Percent
min: 0
max: 100
min_ready_sec:
name: min_ready_sec
title: Min Ready Sec
min: 0
max: 3600
replacement_method:
name: replacement_method
title: Replacement Method
enumValueLabels:
- label: RECREATE
value: RECREATE
- label: SUBSTITUTE
value: SUBSTITUTE
minimal_action:
name: minimal_action
title: Minimal Action
enumValueLabels:
- label: RESTART
value: RESTART
- label: REPLACE
value: REPLACE
- label: REFRESH
value: REFRESH
- label: NONE
value: NONE
type:
name: type
title: Type
enumValueLabels:
- label: PROACTIVE
value: PROACTIVE
- label: OPPORTUNISTIC
value: OPPORTUNISTIC
most_disruptive_allowed_action:
name: most_disruptive_allowed_action
title: Most Disruptive Allowed Action
enumValueLabels:
- label: REPLACE
value: REPLACE
- label: RESTART
value: RESTART
- label: REFRESH
value: REFRESH
- label: NONE
value: NONE
wait_for_instances:
name: wait_for_instances
title: Wait For Instances