deploy_canary.json 13.8 KB
Newer Older
Anamika Agrawal's avatar
Anamika Agrawal committed
1
{
2
3
4
   "$schema": "http://json-schema.org/draft-04/schema#",
   "messages": {
      "$i18n": "locales.yml"
Anamika Agrawal's avatar
Anamika Agrawal committed
5
   },
6
7
   "title": {
      "$ref": "#/messages/deploy.canary.title"
Anamika Agrawal's avatar
Anamika Agrawal committed
8
   },
9
10
   "description": {
      "$ref": "#/messages/deploy.canary.longDescription"
Anamika Agrawal's avatar
Anamika Agrawal committed
11
   },
12
13
   "longDescription": {
      "$ref": "#/messages/deploy.canary.longDescription"
Anamika Agrawal's avatar
Anamika Agrawal committed
14
   },
15
16
17
18
19
   "type": "object",
   "properties": {
      "api-key": {
         "description": {
            "$ref": "#/messages/deploy.apikeyDescription"
Anamika Agrawal's avatar
Anamika Agrawal committed
20
         },
21
22
23
24
         "type": "string",
         "pattern": "\\S",
         "validator": {
            "v-type": "api-key"
Anamika Agrawal's avatar
Anamika Agrawal committed
25
26
         }
      },
Anamika Agrawal's avatar
Anamika Agrawal committed
27
28
29
30
31
32
      "loadbalancer":{
         "description":{
            "$ref":"#/messages/deploy.vpcRegionLabel"
         },
         "type":"string",
         "validator":{
Akshay Vijapur's avatar
Akshay Vijapur committed
33
            "v-type":"alb-instance",
Anamika Agrawal's avatar
Anamika Agrawal committed
34
35
36
37
38
            "params":[
                "vpcRegion"
            ]
         }
      },      
Anamika Agrawal's avatar
Anamika Agrawal committed
39
40
      "canary-step-size": {
         "description": {
41
            "$ref": "#/messages/deploy.canaryStepSize"
Anamika Agrawal's avatar
Anamika Agrawal committed
42
43
         },
         "type": "string",
44
         "pattern": "^[1-9][0-9]?$|^99$"
45
46
      },
      "canary-step-interval": {
Anamika Agrawal's avatar
Anamika Agrawal committed
47
         "description": {
48
            "$ref": "#/messages/deploy.canaryStepInterval"
Anamika Agrawal's avatar
Anamika Agrawal committed
49
50
         },
         "type": "string",
51
         "pattern": "^[1-9]([0-9]*)?$"
52
53
54
55
      },
      "vpcRegion": {
         "description": {
            "$ref": "#/messages/deploy.vpcRegionLabel"
Anamika Agrawal's avatar
Anamika Agrawal committed
56
         },
57
58
         "type": "string",
         "validator": {
Anamika Agrawal's avatar
Anamika Agrawal committed
59
            "v-type": "vpc-region",
60
            "params": [
Anamika Agrawal's avatar
Anamika Agrawal committed
61
62
63
64
               "api-key"
            ]
         }
      },
Anamika Agrawal's avatar
Anamika Agrawal committed
65
      "vpcName": {
66
         "description": {
Anamika Agrawal's avatar
Anamika Agrawal committed
67
            "$ref": "#/messages/deploy.vpcNameLabel"
68
69
70
         },
         "type": "string",
         "validator": {
Anamika Agrawal's avatar
Anamika Agrawal committed
71
            "v-type": "vpc-name",
72
            "params": [
73
               "vpcRegion"
74
75
            ]
         }
Anamika Agrawal's avatar
Anamika Agrawal committed
76
      },
Anamika Agrawal's avatar
Anamika Agrawal committed
77
78
79
      "loadbalancerpool":{
         "description":{
            "$ref":"#/messages/deploy.vpcRegionLabel"
80
         },
Anamika Agrawal's avatar
Anamika Agrawal committed
81
82
         "type":"string",
         "validator":{
Akshay Vijapur's avatar
Akshay Vijapur committed
83
            "v-type":"alb-pool",
Anamika Agrawal's avatar
Anamika Agrawal committed
84
            "params":[
85
               "loadbalancer"
86
87
            ]
         }
Anamika Agrawal's avatar
Anamika Agrawal committed
88
      },
89
90
91
92
93
94
95
96
      "instancegroup1": {
         "description": {
            "$ref": "#/messages/deploy.vpcRegionLabel"
         },
         "type": "string",
         "validator": {
            "v-type": "vpc-instance-group",
            "params": [
Anamika Agrawal's avatar
Anamika Agrawal committed
97
               "vpcName"
98
99
100
101
102
103
104
105
106
107
108
            ]
         }
      },
      "instancegroup2": {
         "description": {
            "$ref": "#/messages/deploy.vpcRegionLabel"
         },
         "type": "string",
         "validator": {
            "v-type": "vpc-instance-group",
            "params": [
Anamika Agrawal's avatar
Anamika Agrawal committed
109
               "vpcName"
110
111
112
113
114
115
            ]
         }
      },
      "bastion-host-user-name": {
         "description": {
            "$ref": "#/messages/deploy.bastionUsernameVirtualServer"
Anamika Agrawal's avatar
Anamika Agrawal committed
116
         },
117
118
         "title": {
            "$ref": "#/messages/deploy.bastionUsernameVirtualServer"
Anamika Agrawal's avatar
Anamika Agrawal committed
119
         },
120
         "type": "string"
Anamika Agrawal's avatar
Anamika Agrawal committed
121
      },
122
123
124
      "bastion-host-ssh-keys": {
         "description": {
            "$ref": "#/messages/deploy.bastionSshVirtualServer"
Anamika Agrawal's avatar
Anamika Agrawal committed
125
         },
126
127
         "title": {
            "$ref": "#/messages/deploy.bastionSshVirtualServer"
Anamika Agrawal's avatar
Anamika Agrawal committed
128
         },
129
         "type": "password"
Anamika Agrawal's avatar
Anamika Agrawal committed
130
      },
131
132
133
      "app-name": {
         "description": {
            "$ref": "#/messages/deploy.appDescription"
Anamika Agrawal's avatar
Anamika Agrawal committed
134
         },
135
136
         "type": "string",
         "pattern": "\\S"
Anamika Agrawal's avatar
Anamika Agrawal committed
137
      },
138
139
140
      "virtual-server-instance": {
         "description": {
            "$ref": "#/messages/deploy.bastionLabel"
Anamika Agrawal's avatar
Anamika Agrawal committed
141
         },
142
         "validator": {
Akshay Vijapur's avatar
Akshay Vijapur committed
143
            "v-type": "vsi-instance",
144
            "params": [
Anamika Agrawal's avatar
Anamika Agrawal committed
145
               "vpcName"
Anamika Agrawal's avatar
Anamika Agrawal committed
146
147
            ]
         },
148
149
         "type": "string",
         "pattern": "\\S"
Anamika Agrawal's avatar
Anamika Agrawal committed
150
151
      }
   },
152
   "required": [
Anamika Agrawal's avatar
Anamika Agrawal committed
153
154
155
156
157
158
159
160
      "app-name",
      "api-key",
      "vpcRegion",
      "virtual-server-instance",
      "bastion-host-ssh-keys",
      "bastion-host-user-name",
      "loadbalancer",
      "loadbalancerpool",
Anamika Agrawal's avatar
Anamika Agrawal committed
161
162
      "instancegroup1",
      "instancegroup2",
Anamika Agrawal's avatar
Anamika Agrawal committed
163
164
165
      "canary-step-interval",
      "canary-step-size"
   ],
166
   "form": [
Anamika Agrawal's avatar
Anamika Agrawal committed
167
      {
168
169
         "type": "validator",
         "url": "/devops/validator/validator-v1.html"
Anamika Agrawal's avatar
Anamika Agrawal committed
170
171
      },
      {
172
173
174
175
         "type": "text",
         "readonly": false,
         "title": {
            "$ref": "#/messages/deploy.appName"
Anamika Agrawal's avatar
Anamika Agrawal committed
176
         },
177
         "key": "app-name"
Anamika Agrawal's avatar
Anamika Agrawal committed
178
179
      },
      {
180
181
182
183
         "type": "text",
         "readonly": false,
         "title": {
            "$ref": "#/messages/deploy.apikey"
Anamika Agrawal's avatar
Anamika Agrawal committed
184
         },
185
         "key": "api-key"
Anamika Agrawal's avatar
Anamika Agrawal committed
186
187
      },
      {
188
189
         "type": "info",
         "text": {
Anamika Agrawal's avatar
Anamika Agrawal committed
190
            "$ref": "#/messages/deploy.vpc"
191
192
         }
      },
Anamika Agrawal's avatar
Anamika Agrawal committed
193
      {
194
195
196
         "type": "table",
         "columnCount": 3,
         "widths": [
Anamika Agrawal's avatar
Anamika Agrawal committed
197
            "37%",
Anamika Agrawal's avatar
Anamika Agrawal committed
198
            "3%",
Anamika Agrawal's avatar
Anamika Agrawal committed
199
            "60%"
Anamika Agrawal's avatar
Anamika Agrawal committed
200
         ],
201
202
203
204
         "items": [
            {
               "type": "label",
               "description": {
Anamika Agrawal's avatar
Anamika Agrawal committed
205
                  "$ref": "#/messages/deploy.vsiRegionTitle"
206
207
               },
               "title": {
Anamika Agrawal's avatar
Anamika Agrawal committed
208
                  "$ref": "#/messages/deploy.vsiRegionTitle"
Anamika Agrawal's avatar
Anamika Agrawal committed
209
210
211
               }
            },
            {
212
213
               "type": "label",
               "title": ""
Anamika Agrawal's avatar
Anamika Agrawal committed
214
215
            },
            {
216
217
               "type": "label",
               "description": {
Anamika Agrawal's avatar
Anamika Agrawal committed
218
                  "$ref": "#/messages/deploy.vsiNameTitle"
219
220
               },
               "title": {
Anamika Agrawal's avatar
Anamika Agrawal committed
221
                  "$ref": "#/messages/deploy.vsiNameTitle"
Anamika Agrawal's avatar
Anamika Agrawal committed
222
223
224
               }
            },
            {
Anamika Agrawal's avatar
Anamika Agrawal committed
225
               "type": "text",
226
               "title": {
Anamika Agrawal's avatar
Anamika Agrawal committed
227
                  "$ref": "#/messages/deploy.vsiRegionTitle"
Anamika Agrawal's avatar
Anamika Agrawal committed
228
               },
229
               "placeholder": {
Anamika Agrawal's avatar
Anamika Agrawal committed
230
                  "$ref": "#/messages/deploy.vsiRegionPlaceHolder"
Anamika Agrawal's avatar
Anamika Agrawal committed
231
               },
232
               "key": "vpcRegion"
Anamika Agrawal's avatar
Anamika Agrawal committed
233
234
            },
            {
235
236
               "type": "label",
               "title": ""
Anamika Agrawal's avatar
Anamika Agrawal committed
237
238
            },
            {
Anamika Agrawal's avatar
Anamika Agrawal committed
239
               "type": "text",
240
               "title": {
Anamika Agrawal's avatar
Anamika Agrawal committed
241
                  "$ref": "#/messages/deploy.deploy.vsiNameTitle"
Anamika Agrawal's avatar
Anamika Agrawal committed
242
               },
243
               "placeholder": {
Anamika Agrawal's avatar
Anamika Agrawal committed
244
                  "$ref": "#/messages/deploy.vsiNamePlaceHolder"
Anamika Agrawal's avatar
Anamika Agrawal committed
245
               },
Anamika Agrawal's avatar
Anamika Agrawal committed
246
               "key": "vpcName"
Anamika Agrawal's avatar
Anamika Agrawal committed
247
248
249
250
            }
         ]
      },
      {
251
252
253
         "type": "table",
         "columnCount": 3,
         "widths": [
Anamika Agrawal's avatar
Anamika Agrawal committed
254
            "37%",
Anamika Agrawal's avatar
Anamika Agrawal committed
255
            "3%",
Anamika Agrawal's avatar
Anamika Agrawal committed
256
            "60%"
Anamika Agrawal's avatar
Anamika Agrawal committed
257
         ],
258
259
260
261
262
263
264
265
         "items": [
            {
               "type": "label",
               "description": {
                  "$ref": "#/messages/deploy.bastionUsernameVirtualServer"
               },
               "title": {
                  "$ref": "#/messages/deploy.bastionUsernameVirtualServer"
Anamika Agrawal's avatar
Anamika Agrawal committed
266
267
268
               }
            },
            {
269
270
               "type": "label",
               "title": ""
Anamika Agrawal's avatar
Anamika Agrawal committed
271
272
            },
            {
273
274
275
276
277
278
               "type": "label",
               "description": {
                  "$ref": "#/messages/deploy.bastionSshVirtualServer"
               },
               "title": {
                  "$ref": "#/messages/deploy.bastionSshVirtualServer"
Anamika Agrawal's avatar
Anamika Agrawal committed
279
280
281
               }
            },
            {
282
283
284
               "type": "text",
               "title": {
                  "$ref": "#/messages/deploy.bastionUsernameVirtualServer"
Anamika Agrawal's avatar
Anamika Agrawal committed
285
               },
286
287
               "placeholder": {
                  "$ref": "#/messages/deploy.bastionUsernamePlaceHolder"
Anamika Agrawal's avatar
Anamika Agrawal committed
288
               },
289
               "key": "bastion-host-user-name"
Anamika Agrawal's avatar
Anamika Agrawal committed
290
291
            },
            {
292
293
               "type": "label",
               "title": ""
Anamika Agrawal's avatar
Anamika Agrawal committed
294
295
            },
            {
296
297
298
               "type": "password",
               "description": {
                  "$ref": "#/messages/deploy.bastionSshVirtualServer"
Anamika Agrawal's avatar
Anamika Agrawal committed
299
               },
300
301
302
               "title": {
                  "$ref": "#/messages/deploy.bastionSshVirtualServer"
               },
Anamika Agrawal's avatar
Anamika Agrawal committed
303
304
305
               "placeholder": {
                  "$ref": "#/messages/deploy.bastionSshVirtualServerPlaceHolder"
               },
306
               "key": "bastion-host-ssh-keys"
Anamika Agrawal's avatar
Anamika Agrawal committed
307
308
309
            }
         ]
      },
Anamika Agrawal's avatar
Anamika Agrawal committed
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
      {
         "type": "info",
         "text": {
            "$ref": "#/messages/deploy.bastionHost"
         }
      },
      {
         "type": "select",
         "title": {
            "$ref": "#/messages/deploy.bastion"
         },
         "placeholder": {
            "$ref": "#/messages/deploy.vsiPlaceHolder"
         },
         "key": "virtual-server-instance"
      },
Anamika Agrawal's avatar
Anamika Agrawal committed
326
      {
327
328
329
330
         "type": "info",
         "text": {
            "$ref": "#/messages/deploy.loadBalancer"
         }
Anamika Agrawal's avatar
Anamika Agrawal committed
331
332
      },
      {
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
         "type": "table",
         "columnCount": 3,
         "widths": [
            "47%",
            "3%",
            "50%"
         ],
         "items": [
            {
               "type": "label",
               "description": {
                  "$ref": "#/messages/deploy.loadBalancerName"
               },
               "title": {
                  "$ref": "#/messages/deploy.loadBalancerName"
               }
            },
            {
               "type": "label",
               "title": ""
            },
            {
               "type": "label",
               "description": {
                  "$ref": "#/messages/deploy.loadBalancerName"
               },
               "title": {
                  "$ref": "#/messages/deploy.poolName"
               }
            },
            {
               "type": "select",
               "readonly": true,
               "title": {
                  "$ref": "#/messages/deploy.loadBalancerName"
               },
               "placeholder": {
                  "$ref": "#/messages/deploy.loadBalancerPlaceHolder"
               },
               "key": "loadbalancer"
            },
            {
               "type": "label",
               "title": ""
            },
            {
               "type": "select",
               "readonly": true,
               "title": {
                  "$ref": "#/messages/deploy.poolName"
               },
               "placeholder": {
                  "$ref": "#/messages/deploy.poolNamePlaceHolder"
               },
               "key": "loadbalancerpool"
            }
         ]
Anamika Agrawal's avatar
Anamika Agrawal committed
390
391
      },
      {
392
393
394
395
         "type": "info",
         "text": {
            "$ref": "#/messages/deploy.instanceGroups"
         }
Anamika Agrawal's avatar
Anamika Agrawal committed
396
397
      },
      {
398
         "type": "table",
Anamika Agrawal's avatar
Anamika Agrawal committed
399
         "columnCount": 3,
400
         "widths": [
Anamika Agrawal's avatar
Anamika Agrawal committed
401
402
403
            "48%",
            "4%",
            "48%"
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
         ],
         "items": [
            {
               "type": "label",
               "description": {
                  "$ref": "#/messages/deploy.instanceGroup1"
               },
               "title": {
                  "$ref": "#/messages/deploy.instanceGroup1.title"
               }
            },
            {
               "type": "label",
               "title": ""
            },
            {
               "type": "label",
               "description": {
                  "$ref": "#/messages/deploy.instanceGroup2"
               },
               "title": {
                  "$ref": "#/messages/deploy.instanceGroup2.title"
               }
            },
            {
               "type": "select",
               "readonly": true,
               "title": {
                  "$ref": "#/messages/deploy.instanceGroup1.title"
               },
               "placeholder": {
                  "$ref": "#/messages/deploy.instanceGroup1PlaceHolder"
               },
               "key": "instancegroup1"
            },
            {
               "type": "label",
               "title": ""
            },
            {
               "type": "select",
               "readonly": true,
               "title": {
                  "$ref": "#/messages/deploy.instanceGroup2.title"
               },
               "placeholder": {
                  "$ref": "#/messages/deploy.instanceGroup2PlaceHolder"
               },
               "key": "instancegroup2"
            }
         ]
Anamika Agrawal's avatar
Anamika Agrawal committed
455
456
      },
      {
457
458
459
         "type": "info",
         "text": {
            "$ref": "#/messages/deploy.canary"
Anamika Agrawal's avatar
Anamika Agrawal committed
460
461
462
         }
      },
      {
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
         "type": "table",
         "columnCount": 3,
         "widths": [
            "47%",
            "3%",
            "50%"
         ],
         "items": [
            {
               "type": "label",
               "description": {
                  "$ref": "#/messages/deploy.canaryStepSize"
               },
               "title": {
                  "$ref": "#/messages/deploy.canaryStepSize.title"
               }
            },
            {
               "type": "label",
               "title": ""
            },
            {
               "type": "label",
               "description": {
                  "$ref": "#/messages/deploy.canaryStepInterval"
               },
               "title": {
                  "$ref": "#/messages/deploy.canaryStepInterval.title"
               }
            },
            {
               "type": "text",
               "title": {
                  "$ref": "#/messages/deploy.canaryStepSize.title"
               },
               "placeholder": {
                  "$ref": "#/messages/deploy.canaryStepSizePlaceHolder"
               },
               "key": "canary-step-size"
            },
            {
               "type": "label",
               "title": ""
            },
            {
               "type": "text",
               "title": {
                  "$ref": "#/messages/deploy.canaryStepInterval.title"
               },
               "placeholder": {
                  "$ref": "#/messages/deploy.canaryStepIntervalPlaceHolder"
               },
               "key": "canary-step-interval"
            }
         ]
Anamika Agrawal's avatar
Anamika Agrawal committed
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
      },
      {
         "type": "notification",
         "display": {
           "style": "warning",
           "title": {
             "$ref": "#/messages/wizard.fetcher.warning.title"
           },
           "subtitle": {
             "$ref": "#/messages/wizard.fetcher.warning.subtitle"
           },
           "showInAdvancedMode": true,
           "advancedModePosition": "bottom"
         },
         "visible": true
       }       
Anamika Agrawal's avatar
Anamika Agrawal committed
534
   ]
Akshay Vijapur's avatar
Akshay Vijapur committed
535
}