@eclipse-che/che-devworkspace-generator 7.78.0-next-5aa7ed4 → 7.78.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/lib/api/devfile-context.d.ts +10 -0
  2. package/lib/api/devfile-context.js +12 -0
  3. package/lib/api/devfile-context.js.map +1 -1
  4. package/lib/devfile-schema/2.0.0/devfile.json +2852 -0
  5. package/lib/devfile-schema/2.1.0/devfile.json +1430 -0
  6. package/lib/devfile-schema/2.2.0/devfile.json +2037 -0
  7. package/lib/devfile-schema/2.2.1/devfile.json +2048 -0
  8. package/lib/devfile-schema/2.2.2/devfile.json +2211 -0
  9. package/lib/devfile-schema/devfile-schema-module.d.ts +12 -0
  10. package/lib/devfile-schema/devfile-schema-module.js +19 -0
  11. package/lib/devfile-schema/devfile-schema-module.js.map +1 -0
  12. package/lib/devfile-schema/devfile-schema-validator.d.ts +5878 -0
  13. package/lib/devfile-schema/devfile-schema-validator.js +77 -0
  14. package/lib/devfile-schema/devfile-schema-validator.js.map +1 -0
  15. package/lib/generate.js +1 -1
  16. package/lib/generate.js.map +1 -1
  17. package/lib/inversify/inversify-binding.js +2 -0
  18. package/lib/inversify/inversify-binding.js.map +1 -1
  19. package/lib/main.js +14 -1
  20. package/lib/main.js.map +1 -1
  21. package/package.json +2 -1
  22. package/src/api/devfile-context.ts +11 -0
  23. package/src/devfile-schema/2.0.0/devfile.json +2852 -0
  24. package/src/devfile-schema/2.1.0/devfile.json +1430 -0
  25. package/src/devfile-schema/2.2.0/devfile.json +2037 -0
  26. package/src/devfile-schema/2.2.1/devfile.json +2048 -0
  27. package/src/devfile-schema/2.2.2/devfile.json +2211 -0
  28. package/src/devfile-schema/devfile-schema-module.ts +18 -0
  29. package/src/devfile-schema/devfile-schema-validator.ts +46 -0
  30. package/src/generate.ts +1 -2
  31. package/src/inversify/inversify-binding.ts +2 -0
  32. package/src/main.ts +20 -0
@@ -0,0 +1,2048 @@
1
+ {
2
+ "description": "Devfile describes the structure of a cloud-native devworkspace and development environment.",
3
+ "type": "object",
4
+ "title": "Devfile schema - Version 2.2.1",
5
+ "required": [
6
+ "schemaVersion"
7
+ ],
8
+ "properties": {
9
+ "attributes": {
10
+ "description": "Map of implementation-dependant free-form YAML attributes.",
11
+ "type": "object",
12
+ "additionalProperties": true
13
+ },
14
+ "commands": {
15
+ "description": "Predefined, ready-to-use, devworkspace-related commands",
16
+ "type": "array",
17
+ "items": {
18
+ "type": "object",
19
+ "required": [
20
+ "id"
21
+ ],
22
+ "oneOf": [
23
+ {
24
+ "required": [
25
+ "exec"
26
+ ]
27
+ },
28
+ {
29
+ "required": [
30
+ "apply"
31
+ ]
32
+ },
33
+ {
34
+ "required": [
35
+ "composite"
36
+ ]
37
+ }
38
+ ],
39
+ "properties": {
40
+ "apply": {
41
+ "description": "Command that consists in applying a given component definition, typically bound to a devworkspace event.\n\nFor example, when an `apply` command is bound to a `preStart` event, and references a `container` component, it will start the container as a K8S initContainer in the devworkspace POD, unless the component has its `dedicatedPod` field set to `true`.\n\nWhen no `apply` command exist for a given component, it is assumed the component will be applied at devworkspace start by default, unless `deployByDefault` for that component is set to false.",
42
+ "type": "object",
43
+ "required": [
44
+ "component"
45
+ ],
46
+ "properties": {
47
+ "component": {
48
+ "description": "Describes component that will be applied",
49
+ "type": "string"
50
+ },
51
+ "group": {
52
+ "description": "Defines the group this command is part of",
53
+ "type": "object",
54
+ "required": [
55
+ "kind"
56
+ ],
57
+ "properties": {
58
+ "isDefault": {
59
+ "description": "Identifies the default command for a given group kind",
60
+ "type": "boolean"
61
+ },
62
+ "kind": {
63
+ "description": "Kind of group the command is part of",
64
+ "type": "string",
65
+ "enum": [
66
+ "build",
67
+ "run",
68
+ "test",
69
+ "debug",
70
+ "deploy"
71
+ ]
72
+ }
73
+ },
74
+ "additionalProperties": false
75
+ },
76
+ "label": {
77
+ "description": "Optional label that provides a label for this command to be used in Editor UI menus for example",
78
+ "type": "string"
79
+ }
80
+ },
81
+ "additionalProperties": false
82
+ },
83
+ "attributes": {
84
+ "description": "Map of implementation-dependant free-form YAML attributes.",
85
+ "type": "object",
86
+ "additionalProperties": true
87
+ },
88
+ "composite": {
89
+ "description": "Composite command that allows executing several sub-commands either sequentially or concurrently",
90
+ "type": "object",
91
+ "properties": {
92
+ "commands": {
93
+ "description": "The commands that comprise this composite command",
94
+ "type": "array",
95
+ "items": {
96
+ "type": "string"
97
+ }
98
+ },
99
+ "group": {
100
+ "description": "Defines the group this command is part of",
101
+ "type": "object",
102
+ "required": [
103
+ "kind"
104
+ ],
105
+ "properties": {
106
+ "isDefault": {
107
+ "description": "Identifies the default command for a given group kind",
108
+ "type": "boolean"
109
+ },
110
+ "kind": {
111
+ "description": "Kind of group the command is part of",
112
+ "type": "string",
113
+ "enum": [
114
+ "build",
115
+ "run",
116
+ "test",
117
+ "debug",
118
+ "deploy"
119
+ ]
120
+ }
121
+ },
122
+ "additionalProperties": false
123
+ },
124
+ "label": {
125
+ "description": "Optional label that provides a label for this command to be used in Editor UI menus for example",
126
+ "type": "string"
127
+ },
128
+ "parallel": {
129
+ "description": "Indicates if the sub-commands should be executed concurrently",
130
+ "type": "boolean"
131
+ }
132
+ },
133
+ "additionalProperties": false
134
+ },
135
+ "exec": {
136
+ "description": "CLI Command executed in an existing component container",
137
+ "type": "object",
138
+ "required": [
139
+ "commandLine",
140
+ "component"
141
+ ],
142
+ "properties": {
143
+ "commandLine": {
144
+ "description": "The actual command-line string\n\nSpecial variables that can be used:\n\n - `$PROJECTS_ROOT`: A path where projects sources are mounted as defined by container component's sourceMapping.\n\n - `$PROJECT_SOURCE`: A path to a project source ($PROJECTS_ROOT/\u003cproject-name\u003e). If there are multiple projects, this will point to the directory of the first one.",
145
+ "type": "string"
146
+ },
147
+ "component": {
148
+ "description": "Describes component to which given action relates",
149
+ "type": "string"
150
+ },
151
+ "env": {
152
+ "description": "Optional list of environment variables that have to be set before running the command",
153
+ "type": "array",
154
+ "items": {
155
+ "type": "object",
156
+ "required": [
157
+ "name",
158
+ "value"
159
+ ],
160
+ "properties": {
161
+ "name": {
162
+ "type": "string"
163
+ },
164
+ "value": {
165
+ "type": "string"
166
+ }
167
+ },
168
+ "additionalProperties": false
169
+ }
170
+ },
171
+ "group": {
172
+ "description": "Defines the group this command is part of",
173
+ "type": "object",
174
+ "required": [
175
+ "kind"
176
+ ],
177
+ "properties": {
178
+ "isDefault": {
179
+ "description": "Identifies the default command for a given group kind",
180
+ "type": "boolean"
181
+ },
182
+ "kind": {
183
+ "description": "Kind of group the command is part of",
184
+ "type": "string",
185
+ "enum": [
186
+ "build",
187
+ "run",
188
+ "test",
189
+ "debug",
190
+ "deploy"
191
+ ]
192
+ }
193
+ },
194
+ "additionalProperties": false
195
+ },
196
+ "hotReloadCapable": {
197
+ "description": "Specify whether the command is restarted or not when the source code changes. If set to `true` the command won't be restarted. A *hotReloadCapable* `run` or `debug` command is expected to handle file changes on its own and won't be restarted. A *hotReloadCapable* `build` command is expected to be executed only once and won't be executed again. This field is taken into account only for commands `build`, `run` and `debug` with `isDefault` set to `true`.\n\nDefault value is `false`",
198
+ "type": "boolean"
199
+ },
200
+ "label": {
201
+ "description": "Optional label that provides a label for this command to be used in Editor UI menus for example",
202
+ "type": "string"
203
+ },
204
+ "workingDir": {
205
+ "description": "Working directory where the command should be executed\n\nSpecial variables that can be used:\n\n - `$PROJECTS_ROOT`: A path where projects sources are mounted as defined by container component's sourceMapping.\n\n - `$PROJECT_SOURCE`: A path to a project source ($PROJECTS_ROOT/\u003cproject-name\u003e). If there are multiple projects, this will point to the directory of the first one.",
206
+ "type": "string"
207
+ }
208
+ },
209
+ "additionalProperties": false
210
+ },
211
+ "id": {
212
+ "description": "Mandatory identifier that allows referencing this command in composite commands, from a parent, or in events.",
213
+ "type": "string",
214
+ "maxLength": 63,
215
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
216
+ }
217
+ },
218
+ "additionalProperties": false
219
+ }
220
+ },
221
+ "components": {
222
+ "description": "List of the devworkspace components, such as editor and plugins, user-provided containers, or other types of components",
223
+ "type": "array",
224
+ "items": {
225
+ "type": "object",
226
+ "required": [
227
+ "name"
228
+ ],
229
+ "oneOf": [
230
+ {
231
+ "required": [
232
+ "container"
233
+ ]
234
+ },
235
+ {
236
+ "required": [
237
+ "kubernetes"
238
+ ]
239
+ },
240
+ {
241
+ "required": [
242
+ "openshift"
243
+ ]
244
+ },
245
+ {
246
+ "required": [
247
+ "volume"
248
+ ]
249
+ },
250
+ {
251
+ "required": [
252
+ "image"
253
+ ]
254
+ }
255
+ ],
256
+ "properties": {
257
+ "attributes": {
258
+ "description": "Map of implementation-dependant free-form YAML attributes.",
259
+ "type": "object",
260
+ "additionalProperties": true
261
+ },
262
+ "container": {
263
+ "description": "Allows adding and configuring devworkspace-related containers",
264
+ "type": "object",
265
+ "required": [
266
+ "image"
267
+ ],
268
+ "properties": {
269
+ "annotation": {
270
+ "description": "Annotations that should be added to specific resources for this container",
271
+ "type": "object",
272
+ "properties": {
273
+ "deployment": {
274
+ "description": "Annotations to be added to deployment",
275
+ "type": "object",
276
+ "additionalProperties": {
277
+ "type": "string"
278
+ }
279
+ },
280
+ "service": {
281
+ "description": "Annotations to be added to service",
282
+ "type": "object",
283
+ "additionalProperties": {
284
+ "type": "string"
285
+ }
286
+ }
287
+ },
288
+ "additionalProperties": false
289
+ },
290
+ "args": {
291
+ "description": "The arguments to supply to the command running the dockerimage component. The arguments are supplied either to the default command provided in the image or to the overridden command.\n\nDefaults to an empty array, meaning use whatever is defined in the image.",
292
+ "type": "array",
293
+ "items": {
294
+ "type": "string"
295
+ }
296
+ },
297
+ "command": {
298
+ "description": "The command to run in the dockerimage component instead of the default one provided in the image.\n\nDefaults to an empty array, meaning use whatever is defined in the image.",
299
+ "type": "array",
300
+ "items": {
301
+ "type": "string"
302
+ }
303
+ },
304
+ "cpuLimit": {
305
+ "type": "string"
306
+ },
307
+ "cpuRequest": {
308
+ "type": "string"
309
+ },
310
+ "dedicatedPod": {
311
+ "description": "Specify if a container should run in its own separated pod, instead of running as part of the main development environment pod.\n\nDefault value is `false`",
312
+ "type": "boolean"
313
+ },
314
+ "endpoints": {
315
+ "type": "array",
316
+ "items": {
317
+ "type": "object",
318
+ "required": [
319
+ "name",
320
+ "targetPort"
321
+ ],
322
+ "properties": {
323
+ "annotation": {
324
+ "description": "Annotations to be added to Kubernetes Ingress or Openshift Route",
325
+ "type": "object",
326
+ "additionalProperties": {
327
+ "type": "string"
328
+ }
329
+ },
330
+ "attributes": {
331
+ "description": "Map of implementation-dependant string-based free-form attributes.\n\nExamples of Che-specific attributes:\n- cookiesAuthEnabled: \"true\" / \"false\",\n- type: \"terminal\" / \"ide\" / \"ide-dev\",",
332
+ "type": "object",
333
+ "additionalProperties": true
334
+ },
335
+ "exposure": {
336
+ "description": "Describes how the endpoint should be exposed on the network.\n- `public` means that the endpoint will be exposed on the public network, typically through a K8S ingress or an OpenShift route.\n- `internal` means that the endpoint will be exposed internally outside of the main devworkspace POD, typically by K8S services, to be consumed by other elements running on the same cloud internal network.\n- `none` means that the endpoint will not be exposed and will only be accessible inside the main devworkspace POD, on a local address.\n\nDefault value is `public`",
337
+ "type": "string",
338
+ "default": "public",
339
+ "enum": [
340
+ "public",
341
+ "internal",
342
+ "none"
343
+ ]
344
+ },
345
+ "name": {
346
+ "type": "string",
347
+ "maxLength": 15,
348
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
349
+ },
350
+ "path": {
351
+ "description": "Path of the endpoint URL",
352
+ "type": "string"
353
+ },
354
+ "protocol": {
355
+ "description": "Describes the application and transport protocols of the traffic that will go through this endpoint.\n- `http`: Endpoint will have `http` traffic, typically on a TCP connection. It will be automaticaly promoted to `https` when the `secure` field is set to `true`.\n- `https`: Endpoint will have `https` traffic, typically on a TCP connection.\n- `ws`: Endpoint will have `ws` traffic, typically on a TCP connection. It will be automaticaly promoted to `wss` when the `secure` field is set to `true`.\n- `wss`: Endpoint will have `wss` traffic, typically on a TCP connection.\n- `tcp`: Endpoint will have traffic on a TCP connection, without specifying an application protocol.\n- `udp`: Endpoint will have traffic on an UDP connection, without specifying an application protocol.\n\nDefault value is `http`",
356
+ "type": "string",
357
+ "default": "http",
358
+ "enum": [
359
+ "http",
360
+ "https",
361
+ "ws",
362
+ "wss",
363
+ "tcp",
364
+ "udp"
365
+ ]
366
+ },
367
+ "secure": {
368
+ "description": "Describes whether the endpoint should be secured and protected by some authentication process. This requires a protocol of `https` or `wss`.",
369
+ "type": "boolean"
370
+ },
371
+ "targetPort": {
372
+ "description": "Port number to be used within the container component. The same port cannot be used by two different container components.",
373
+ "type": "integer"
374
+ }
375
+ },
376
+ "additionalProperties": false
377
+ }
378
+ },
379
+ "env": {
380
+ "description": "Environment variables used in this container.\n\nThe following variables are reserved and cannot be overridden via env:\n\n - `$PROJECTS_ROOT`\n\n - `$PROJECT_SOURCE`",
381
+ "type": "array",
382
+ "items": {
383
+ "type": "object",
384
+ "required": [
385
+ "name",
386
+ "value"
387
+ ],
388
+ "properties": {
389
+ "name": {
390
+ "type": "string"
391
+ },
392
+ "value": {
393
+ "type": "string"
394
+ }
395
+ },
396
+ "additionalProperties": false
397
+ }
398
+ },
399
+ "image": {
400
+ "type": "string"
401
+ },
402
+ "memoryLimit": {
403
+ "type": "string"
404
+ },
405
+ "memoryRequest": {
406
+ "type": "string"
407
+ },
408
+ "mountSources": {
409
+ "description": "Toggles whether or not the project source code should be mounted in the component.\n\nDefaults to true for all component types except plugins and components that set `dedicatedPod` to true.",
410
+ "type": "boolean"
411
+ },
412
+ "sourceMapping": {
413
+ "description": "Optional specification of the path in the container where project sources should be transferred/mounted when `mountSources` is `true`. When omitted, the default value of /projects is used.",
414
+ "type": "string",
415
+ "default": "/projects"
416
+ },
417
+ "volumeMounts": {
418
+ "description": "List of volumes mounts that should be mounted is this container.",
419
+ "type": "array",
420
+ "items": {
421
+ "description": "Volume that should be mounted to a component container",
422
+ "type": "object",
423
+ "required": [
424
+ "name"
425
+ ],
426
+ "properties": {
427
+ "name": {
428
+ "description": "The volume mount name is the name of an existing `Volume` component. If several containers mount the same volume name then they will reuse the same volume and will be able to access to the same files.",
429
+ "type": "string",
430
+ "maxLength": 63,
431
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
432
+ },
433
+ "path": {
434
+ "description": "The path in the component container where the volume should be mounted. If not path is mentioned, default path is the is `/\u003cname\u003e`.",
435
+ "type": "string"
436
+ }
437
+ },
438
+ "additionalProperties": false
439
+ }
440
+ }
441
+ },
442
+ "additionalProperties": false
443
+ },
444
+ "image": {
445
+ "description": "Allows specifying the definition of an image for outer loop builds",
446
+ "type": "object",
447
+ "required": [
448
+ "imageName"
449
+ ],
450
+ "oneOf": [
451
+ {
452
+ "required": [
453
+ "dockerfile"
454
+ ]
455
+ }
456
+ ],
457
+ "properties": {
458
+ "autoBuild": {
459
+ "description": "Defines if the image should be built during startup.\n\nDefault value is `false`",
460
+ "type": "boolean"
461
+ },
462
+ "dockerfile": {
463
+ "description": "Allows specifying dockerfile type build",
464
+ "type": "object",
465
+ "oneOf": [
466
+ {
467
+ "required": [
468
+ "uri"
469
+ ]
470
+ },
471
+ {
472
+ "required": [
473
+ "devfileRegistry"
474
+ ]
475
+ },
476
+ {
477
+ "required": [
478
+ "git"
479
+ ]
480
+ }
481
+ ],
482
+ "properties": {
483
+ "args": {
484
+ "description": "The arguments to supply to the dockerfile build.",
485
+ "type": "array",
486
+ "items": {
487
+ "type": "string"
488
+ }
489
+ },
490
+ "buildContext": {
491
+ "description": "Path of source directory to establish build context. Defaults to ${PROJECT_SOURCE} in the container",
492
+ "type": "string"
493
+ },
494
+ "devfileRegistry": {
495
+ "description": "Dockerfile's Devfile Registry source",
496
+ "type": "object",
497
+ "required": [
498
+ "id"
499
+ ],
500
+ "properties": {
501
+ "id": {
502
+ "description": "Id in a devfile registry that contains a Dockerfile. The src in the OCI registry required for the Dockerfile build will be downloaded for building the image.",
503
+ "type": "string"
504
+ },
505
+ "registryUrl": {
506
+ "description": "Devfile Registry URL to pull the Dockerfile from when using the Devfile Registry as Dockerfile src. To ensure the Dockerfile gets resolved consistently in different environments, it is recommended to always specify the `devfileRegistryUrl` when `Id` is used.",
507
+ "type": "string"
508
+ }
509
+ },
510
+ "additionalProperties": false
511
+ },
512
+ "git": {
513
+ "description": "Dockerfile's Git source",
514
+ "type": "object",
515
+ "required": [
516
+ "remotes"
517
+ ],
518
+ "properties": {
519
+ "checkoutFrom": {
520
+ "description": "Defines from what the project should be checked out. Required if there are more than one remote configured",
521
+ "type": "object",
522
+ "properties": {
523
+ "remote": {
524
+ "description": "The remote name should be used as init. Required if there are more than one remote configured",
525
+ "type": "string"
526
+ },
527
+ "revision": {
528
+ "description": "The revision to checkout from. Should be branch name, tag or commit id. Default branch is used if missing or specified revision is not found.",
529
+ "type": "string"
530
+ }
531
+ },
532
+ "additionalProperties": false
533
+ },
534
+ "fileLocation": {
535
+ "description": "Location of the Dockerfile in the Git repository when using git as Dockerfile src. Defaults to Dockerfile.",
536
+ "type": "string"
537
+ },
538
+ "remotes": {
539
+ "description": "The remotes map which should be initialized in the git project. Projects must have at least one remote configured while StarterProjects \u0026 Image Component's Git source can only have at most one remote configured.",
540
+ "type": "object",
541
+ "additionalProperties": {
542
+ "type": "string"
543
+ }
544
+ }
545
+ },
546
+ "additionalProperties": false
547
+ },
548
+ "rootRequired": {
549
+ "description": "Specify if a privileged builder pod is required.\n\nDefault value is `false`",
550
+ "type": "boolean"
551
+ },
552
+ "uri": {
553
+ "description": "URI Reference of a Dockerfile. It can be a full URL or a relative URI from the current devfile as the base URI.",
554
+ "type": "string"
555
+ }
556
+ },
557
+ "additionalProperties": false
558
+ },
559
+ "imageName": {
560
+ "description": "Name of the image for the resulting outerloop build",
561
+ "type": "string"
562
+ }
563
+ },
564
+ "additionalProperties": false
565
+ },
566
+ "kubernetes": {
567
+ "description": "Allows importing into the devworkspace the Kubernetes resources defined in a given manifest. For example this allows reusing the Kubernetes definitions used to deploy some runtime components in production.",
568
+ "type": "object",
569
+ "oneOf": [
570
+ {
571
+ "required": [
572
+ "uri"
573
+ ]
574
+ },
575
+ {
576
+ "required": [
577
+ "inlined"
578
+ ]
579
+ }
580
+ ],
581
+ "properties": {
582
+ "deployByDefault": {
583
+ "description": "Defines if the component should be deployed during startup.\n\nDefault value is `false`",
584
+ "type": "boolean"
585
+ },
586
+ "endpoints": {
587
+ "type": "array",
588
+ "items": {
589
+ "type": "object",
590
+ "required": [
591
+ "name",
592
+ "targetPort"
593
+ ],
594
+ "properties": {
595
+ "annotation": {
596
+ "description": "Annotations to be added to Kubernetes Ingress or Openshift Route",
597
+ "type": "object",
598
+ "additionalProperties": {
599
+ "type": "string"
600
+ }
601
+ },
602
+ "attributes": {
603
+ "description": "Map of implementation-dependant string-based free-form attributes.\n\nExamples of Che-specific attributes:\n- cookiesAuthEnabled: \"true\" / \"false\",\n- type: \"terminal\" / \"ide\" / \"ide-dev\",",
604
+ "type": "object",
605
+ "additionalProperties": true
606
+ },
607
+ "exposure": {
608
+ "description": "Describes how the endpoint should be exposed on the network.\n- `public` means that the endpoint will be exposed on the public network, typically through a K8S ingress or an OpenShift route.\n- `internal` means that the endpoint will be exposed internally outside of the main devworkspace POD, typically by K8S services, to be consumed by other elements running on the same cloud internal network.\n- `none` means that the endpoint will not be exposed and will only be accessible inside the main devworkspace POD, on a local address.\n\nDefault value is `public`",
609
+ "type": "string",
610
+ "default": "public",
611
+ "enum": [
612
+ "public",
613
+ "internal",
614
+ "none"
615
+ ]
616
+ },
617
+ "name": {
618
+ "type": "string",
619
+ "maxLength": 15,
620
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
621
+ },
622
+ "path": {
623
+ "description": "Path of the endpoint URL",
624
+ "type": "string"
625
+ },
626
+ "protocol": {
627
+ "description": "Describes the application and transport protocols of the traffic that will go through this endpoint.\n- `http`: Endpoint will have `http` traffic, typically on a TCP connection. It will be automaticaly promoted to `https` when the `secure` field is set to `true`.\n- `https`: Endpoint will have `https` traffic, typically on a TCP connection.\n- `ws`: Endpoint will have `ws` traffic, typically on a TCP connection. It will be automaticaly promoted to `wss` when the `secure` field is set to `true`.\n- `wss`: Endpoint will have `wss` traffic, typically on a TCP connection.\n- `tcp`: Endpoint will have traffic on a TCP connection, without specifying an application protocol.\n- `udp`: Endpoint will have traffic on an UDP connection, without specifying an application protocol.\n\nDefault value is `http`",
628
+ "type": "string",
629
+ "default": "http",
630
+ "enum": [
631
+ "http",
632
+ "https",
633
+ "ws",
634
+ "wss",
635
+ "tcp",
636
+ "udp"
637
+ ]
638
+ },
639
+ "secure": {
640
+ "description": "Describes whether the endpoint should be secured and protected by some authentication process. This requires a protocol of `https` or `wss`.",
641
+ "type": "boolean"
642
+ },
643
+ "targetPort": {
644
+ "description": "Port number to be used within the container component. The same port cannot be used by two different container components.",
645
+ "type": "integer"
646
+ }
647
+ },
648
+ "additionalProperties": false
649
+ }
650
+ },
651
+ "inlined": {
652
+ "description": "Inlined manifest",
653
+ "type": "string"
654
+ },
655
+ "uri": {
656
+ "description": "Location in a file fetched from a uri.",
657
+ "type": "string"
658
+ }
659
+ },
660
+ "additionalProperties": false
661
+ },
662
+ "name": {
663
+ "description": "Mandatory name that allows referencing the component from other elements (such as commands) or from an external devfile that may reference this component through a parent or a plugin.",
664
+ "type": "string",
665
+ "maxLength": 63,
666
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
667
+ },
668
+ "openshift": {
669
+ "description": "Allows importing into the devworkspace the OpenShift resources defined in a given manifest. For example this allows reusing the OpenShift definitions used to deploy some runtime components in production.",
670
+ "type": "object",
671
+ "oneOf": [
672
+ {
673
+ "required": [
674
+ "uri"
675
+ ]
676
+ },
677
+ {
678
+ "required": [
679
+ "inlined"
680
+ ]
681
+ }
682
+ ],
683
+ "properties": {
684
+ "deployByDefault": {
685
+ "description": "Defines if the component should be deployed during startup.\n\nDefault value is `false`",
686
+ "type": "boolean"
687
+ },
688
+ "endpoints": {
689
+ "type": "array",
690
+ "items": {
691
+ "type": "object",
692
+ "required": [
693
+ "name",
694
+ "targetPort"
695
+ ],
696
+ "properties": {
697
+ "annotation": {
698
+ "description": "Annotations to be added to Kubernetes Ingress or Openshift Route",
699
+ "type": "object",
700
+ "additionalProperties": {
701
+ "type": "string"
702
+ }
703
+ },
704
+ "attributes": {
705
+ "description": "Map of implementation-dependant string-based free-form attributes.\n\nExamples of Che-specific attributes:\n- cookiesAuthEnabled: \"true\" / \"false\",\n- type: \"terminal\" / \"ide\" / \"ide-dev\",",
706
+ "type": "object",
707
+ "additionalProperties": true
708
+ },
709
+ "exposure": {
710
+ "description": "Describes how the endpoint should be exposed on the network.\n- `public` means that the endpoint will be exposed on the public network, typically through a K8S ingress or an OpenShift route.\n- `internal` means that the endpoint will be exposed internally outside of the main devworkspace POD, typically by K8S services, to be consumed by other elements running on the same cloud internal network.\n- `none` means that the endpoint will not be exposed and will only be accessible inside the main devworkspace POD, on a local address.\n\nDefault value is `public`",
711
+ "type": "string",
712
+ "default": "public",
713
+ "enum": [
714
+ "public",
715
+ "internal",
716
+ "none"
717
+ ]
718
+ },
719
+ "name": {
720
+ "type": "string",
721
+ "maxLength": 15,
722
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
723
+ },
724
+ "path": {
725
+ "description": "Path of the endpoint URL",
726
+ "type": "string"
727
+ },
728
+ "protocol": {
729
+ "description": "Describes the application and transport protocols of the traffic that will go through this endpoint.\n- `http`: Endpoint will have `http` traffic, typically on a TCP connection. It will be automaticaly promoted to `https` when the `secure` field is set to `true`.\n- `https`: Endpoint will have `https` traffic, typically on a TCP connection.\n- `ws`: Endpoint will have `ws` traffic, typically on a TCP connection. It will be automaticaly promoted to `wss` when the `secure` field is set to `true`.\n- `wss`: Endpoint will have `wss` traffic, typically on a TCP connection.\n- `tcp`: Endpoint will have traffic on a TCP connection, without specifying an application protocol.\n- `udp`: Endpoint will have traffic on an UDP connection, without specifying an application protocol.\n\nDefault value is `http`",
730
+ "type": "string",
731
+ "default": "http",
732
+ "enum": [
733
+ "http",
734
+ "https",
735
+ "ws",
736
+ "wss",
737
+ "tcp",
738
+ "udp"
739
+ ]
740
+ },
741
+ "secure": {
742
+ "description": "Describes whether the endpoint should be secured and protected by some authentication process. This requires a protocol of `https` or `wss`.",
743
+ "type": "boolean"
744
+ },
745
+ "targetPort": {
746
+ "description": "Port number to be used within the container component. The same port cannot be used by two different container components.",
747
+ "type": "integer"
748
+ }
749
+ },
750
+ "additionalProperties": false
751
+ }
752
+ },
753
+ "inlined": {
754
+ "description": "Inlined manifest",
755
+ "type": "string"
756
+ },
757
+ "uri": {
758
+ "description": "Location in a file fetched from a uri.",
759
+ "type": "string"
760
+ }
761
+ },
762
+ "additionalProperties": false
763
+ },
764
+ "volume": {
765
+ "description": "Allows specifying the definition of a volume shared by several other components",
766
+ "type": "object",
767
+ "properties": {
768
+ "ephemeral": {
769
+ "description": "Ephemeral volumes are not stored persistently across restarts. Defaults to false",
770
+ "type": "boolean"
771
+ },
772
+ "size": {
773
+ "description": "Size of the volume",
774
+ "type": "string"
775
+ }
776
+ },
777
+ "additionalProperties": false
778
+ }
779
+ },
780
+ "additionalProperties": false
781
+ }
782
+ },
783
+ "events": {
784
+ "description": "Bindings of commands to events. Each command is referred-to by its name.",
785
+ "type": "object",
786
+ "properties": {
787
+ "postStart": {
788
+ "description": "IDs of commands that should be executed after the devworkspace is completely started. In the case of Che-Theia, these commands should be executed after all plugins and extensions have started, including project cloning. This means that those commands are not triggered until the user opens the IDE in his browser.",
789
+ "type": "array",
790
+ "items": {
791
+ "type": "string"
792
+ }
793
+ },
794
+ "postStop": {
795
+ "description": "IDs of commands that should be executed after stopping the devworkspace.",
796
+ "type": "array",
797
+ "items": {
798
+ "type": "string"
799
+ }
800
+ },
801
+ "preStart": {
802
+ "description": "IDs of commands that should be executed before the devworkspace start. Kubernetes-wise, these commands would typically be executed in init containers of the devworkspace POD.",
803
+ "type": "array",
804
+ "items": {
805
+ "type": "string"
806
+ }
807
+ },
808
+ "preStop": {
809
+ "description": "IDs of commands that should be executed before stopping the devworkspace.",
810
+ "type": "array",
811
+ "items": {
812
+ "type": "string"
813
+ }
814
+ }
815
+ },
816
+ "additionalProperties": false
817
+ },
818
+ "metadata": {
819
+ "description": "Optional metadata",
820
+ "type": "object",
821
+ "properties": {
822
+ "architectures": {
823
+ "description": "Optional list of processor architectures that the devfile supports, empty list suggests that the devfile can be used on any architecture",
824
+ "type": "array",
825
+ "uniqueItems": true,
826
+ "items": {
827
+ "description": "Architecture describes the architecture type",
828
+ "type": "string",
829
+ "enum": [
830
+ "amd64",
831
+ "arm64",
832
+ "ppc64le",
833
+ "s390x"
834
+ ]
835
+ }
836
+ },
837
+ "attributes": {
838
+ "description": "Map of implementation-dependant free-form YAML attributes. Deprecated, use the top-level attributes field instead.",
839
+ "type": "object",
840
+ "additionalProperties": true
841
+ },
842
+ "description": {
843
+ "description": "Optional devfile description",
844
+ "type": "string"
845
+ },
846
+ "displayName": {
847
+ "description": "Optional devfile display name",
848
+ "type": "string"
849
+ },
850
+ "globalMemoryLimit": {
851
+ "description": "Optional devfile global memory limit",
852
+ "type": "string"
853
+ },
854
+ "icon": {
855
+ "description": "Optional devfile icon, can be a URI or a relative path in the project",
856
+ "type": "string"
857
+ },
858
+ "language": {
859
+ "description": "Optional devfile language",
860
+ "type": "string"
861
+ },
862
+ "name": {
863
+ "description": "Optional devfile name",
864
+ "type": "string"
865
+ },
866
+ "projectType": {
867
+ "description": "Optional devfile project type",
868
+ "type": "string"
869
+ },
870
+ "provider": {
871
+ "description": "Optional devfile provider information",
872
+ "type": "string"
873
+ },
874
+ "supportUrl": {
875
+ "description": "Optional link to a page that provides support information",
876
+ "type": "string"
877
+ },
878
+ "tags": {
879
+ "description": "Optional devfile tags",
880
+ "type": "array",
881
+ "items": {
882
+ "type": "string"
883
+ }
884
+ },
885
+ "version": {
886
+ "description": "Optional semver-compatible version",
887
+ "type": "string",
888
+ "pattern": "^([0-9]+)\\.([0-9]+)\\.([0-9]+)(\\-[0-9a-z-]+(\\.[0-9a-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$"
889
+ },
890
+ "website": {
891
+ "description": "Optional devfile website",
892
+ "type": "string"
893
+ }
894
+ },
895
+ "additionalProperties": true
896
+ },
897
+ "parent": {
898
+ "description": "Parent devworkspace template",
899
+ "type": "object",
900
+ "oneOf": [
901
+ {
902
+ "required": [
903
+ "uri"
904
+ ]
905
+ },
906
+ {
907
+ "required": [
908
+ "id"
909
+ ]
910
+ },
911
+ {
912
+ "required": [
913
+ "kubernetes"
914
+ ]
915
+ }
916
+ ],
917
+ "properties": {
918
+ "attributes": {
919
+ "description": "Overrides of attributes encapsulated in a parent devfile. Overriding is done according to K8S strategic merge patch standard rules.",
920
+ "type": "object",
921
+ "additionalProperties": true
922
+ },
923
+ "commands": {
924
+ "description": "Overrides of commands encapsulated in a parent devfile or a plugin. Overriding is done according to K8S strategic merge patch standard rules.",
925
+ "type": "array",
926
+ "items": {
927
+ "type": "object",
928
+ "required": [
929
+ "id"
930
+ ],
931
+ "oneOf": [
932
+ {
933
+ "required": [
934
+ "exec"
935
+ ]
936
+ },
937
+ {
938
+ "required": [
939
+ "apply"
940
+ ]
941
+ },
942
+ {
943
+ "required": [
944
+ "composite"
945
+ ]
946
+ }
947
+ ],
948
+ "properties": {
949
+ "apply": {
950
+ "description": "Command that consists in applying a given component definition, typically bound to a devworkspace event.\n\nFor example, when an `apply` command is bound to a `preStart` event, and references a `container` component, it will start the container as a K8S initContainer in the devworkspace POD, unless the component has its `dedicatedPod` field set to `true`.\n\nWhen no `apply` command exist for a given component, it is assumed the component will be applied at devworkspace start by default, unless `deployByDefault` for that component is set to false.",
951
+ "type": "object",
952
+ "properties": {
953
+ "component": {
954
+ "description": "Describes component that will be applied",
955
+ "type": "string"
956
+ },
957
+ "group": {
958
+ "description": "Defines the group this command is part of",
959
+ "type": "object",
960
+ "properties": {
961
+ "isDefault": {
962
+ "description": "Identifies the default command for a given group kind",
963
+ "type": "boolean"
964
+ },
965
+ "kind": {
966
+ "description": "Kind of group the command is part of",
967
+ "type": "string",
968
+ "enum": [
969
+ "build",
970
+ "run",
971
+ "test",
972
+ "debug",
973
+ "deploy"
974
+ ]
975
+ }
976
+ },
977
+ "additionalProperties": false
978
+ },
979
+ "label": {
980
+ "description": "Optional label that provides a label for this command to be used in Editor UI menus for example",
981
+ "type": "string"
982
+ }
983
+ },
984
+ "additionalProperties": false
985
+ },
986
+ "attributes": {
987
+ "description": "Map of implementation-dependant free-form YAML attributes.",
988
+ "type": "object",
989
+ "additionalProperties": true
990
+ },
991
+ "composite": {
992
+ "description": "Composite command that allows executing several sub-commands either sequentially or concurrently",
993
+ "type": "object",
994
+ "properties": {
995
+ "commands": {
996
+ "description": "The commands that comprise this composite command",
997
+ "type": "array",
998
+ "items": {
999
+ "type": "string"
1000
+ }
1001
+ },
1002
+ "group": {
1003
+ "description": "Defines the group this command is part of",
1004
+ "type": "object",
1005
+ "properties": {
1006
+ "isDefault": {
1007
+ "description": "Identifies the default command for a given group kind",
1008
+ "type": "boolean"
1009
+ },
1010
+ "kind": {
1011
+ "description": "Kind of group the command is part of",
1012
+ "type": "string",
1013
+ "enum": [
1014
+ "build",
1015
+ "run",
1016
+ "test",
1017
+ "debug",
1018
+ "deploy"
1019
+ ]
1020
+ }
1021
+ },
1022
+ "additionalProperties": false
1023
+ },
1024
+ "label": {
1025
+ "description": "Optional label that provides a label for this command to be used in Editor UI menus for example",
1026
+ "type": "string"
1027
+ },
1028
+ "parallel": {
1029
+ "description": "Indicates if the sub-commands should be executed concurrently",
1030
+ "type": "boolean"
1031
+ }
1032
+ },
1033
+ "additionalProperties": false
1034
+ },
1035
+ "exec": {
1036
+ "description": "CLI Command executed in an existing component container",
1037
+ "type": "object",
1038
+ "properties": {
1039
+ "commandLine": {
1040
+ "description": "The actual command-line string\n\nSpecial variables that can be used:\n\n - `$PROJECTS_ROOT`: A path where projects sources are mounted as defined by container component's sourceMapping.\n\n - `$PROJECT_SOURCE`: A path to a project source ($PROJECTS_ROOT/\u003cproject-name\u003e). If there are multiple projects, this will point to the directory of the first one.",
1041
+ "type": "string"
1042
+ },
1043
+ "component": {
1044
+ "description": "Describes component to which given action relates",
1045
+ "type": "string"
1046
+ },
1047
+ "env": {
1048
+ "description": "Optional list of environment variables that have to be set before running the command",
1049
+ "type": "array",
1050
+ "items": {
1051
+ "type": "object",
1052
+ "required": [
1053
+ "name"
1054
+ ],
1055
+ "properties": {
1056
+ "name": {
1057
+ "type": "string"
1058
+ },
1059
+ "value": {
1060
+ "type": "string"
1061
+ }
1062
+ },
1063
+ "additionalProperties": false
1064
+ }
1065
+ },
1066
+ "group": {
1067
+ "description": "Defines the group this command is part of",
1068
+ "type": "object",
1069
+ "properties": {
1070
+ "isDefault": {
1071
+ "description": "Identifies the default command for a given group kind",
1072
+ "type": "boolean"
1073
+ },
1074
+ "kind": {
1075
+ "description": "Kind of group the command is part of",
1076
+ "type": "string",
1077
+ "enum": [
1078
+ "build",
1079
+ "run",
1080
+ "test",
1081
+ "debug",
1082
+ "deploy"
1083
+ ]
1084
+ }
1085
+ },
1086
+ "additionalProperties": false
1087
+ },
1088
+ "hotReloadCapable": {
1089
+ "description": "Specify whether the command is restarted or not when the source code changes. If set to `true` the command won't be restarted. A *hotReloadCapable* `run` or `debug` command is expected to handle file changes on its own and won't be restarted. A *hotReloadCapable* `build` command is expected to be executed only once and won't be executed again. This field is taken into account only for commands `build`, `run` and `debug` with `isDefault` set to `true`.\n\nDefault value is `false`",
1090
+ "type": "boolean"
1091
+ },
1092
+ "label": {
1093
+ "description": "Optional label that provides a label for this command to be used in Editor UI menus for example",
1094
+ "type": "string"
1095
+ },
1096
+ "workingDir": {
1097
+ "description": "Working directory where the command should be executed\n\nSpecial variables that can be used:\n\n - `$PROJECTS_ROOT`: A path where projects sources are mounted as defined by container component's sourceMapping.\n\n - `$PROJECT_SOURCE`: A path to a project source ($PROJECTS_ROOT/\u003cproject-name\u003e). If there are multiple projects, this will point to the directory of the first one.",
1098
+ "type": "string"
1099
+ }
1100
+ },
1101
+ "additionalProperties": false
1102
+ },
1103
+ "id": {
1104
+ "description": "Mandatory identifier that allows referencing this command in composite commands, from a parent, or in events.",
1105
+ "type": "string",
1106
+ "maxLength": 63,
1107
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
1108
+ }
1109
+ },
1110
+ "additionalProperties": false
1111
+ }
1112
+ },
1113
+ "components": {
1114
+ "description": "Overrides of components encapsulated in a parent devfile or a plugin. Overriding is done according to K8S strategic merge patch standard rules.",
1115
+ "type": "array",
1116
+ "items": {
1117
+ "type": "object",
1118
+ "required": [
1119
+ "name"
1120
+ ],
1121
+ "oneOf": [
1122
+ {
1123
+ "required": [
1124
+ "container"
1125
+ ]
1126
+ },
1127
+ {
1128
+ "required": [
1129
+ "kubernetes"
1130
+ ]
1131
+ },
1132
+ {
1133
+ "required": [
1134
+ "openshift"
1135
+ ]
1136
+ },
1137
+ {
1138
+ "required": [
1139
+ "volume"
1140
+ ]
1141
+ },
1142
+ {
1143
+ "required": [
1144
+ "image"
1145
+ ]
1146
+ }
1147
+ ],
1148
+ "properties": {
1149
+ "attributes": {
1150
+ "description": "Map of implementation-dependant free-form YAML attributes.",
1151
+ "type": "object",
1152
+ "additionalProperties": true
1153
+ },
1154
+ "container": {
1155
+ "description": "Allows adding and configuring devworkspace-related containers",
1156
+ "type": "object",
1157
+ "properties": {
1158
+ "annotation": {
1159
+ "description": "Annotations that should be added to specific resources for this container",
1160
+ "type": "object",
1161
+ "properties": {
1162
+ "deployment": {
1163
+ "description": "Annotations to be added to deployment",
1164
+ "type": "object",
1165
+ "additionalProperties": {
1166
+ "type": "string"
1167
+ }
1168
+ },
1169
+ "service": {
1170
+ "description": "Annotations to be added to service",
1171
+ "type": "object",
1172
+ "additionalProperties": {
1173
+ "type": "string"
1174
+ }
1175
+ }
1176
+ },
1177
+ "additionalProperties": false
1178
+ },
1179
+ "args": {
1180
+ "description": "The arguments to supply to the command running the dockerimage component. The arguments are supplied either to the default command provided in the image or to the overridden command.\n\nDefaults to an empty array, meaning use whatever is defined in the image.",
1181
+ "type": "array",
1182
+ "items": {
1183
+ "type": "string"
1184
+ }
1185
+ },
1186
+ "command": {
1187
+ "description": "The command to run in the dockerimage component instead of the default one provided in the image.\n\nDefaults to an empty array, meaning use whatever is defined in the image.",
1188
+ "type": "array",
1189
+ "items": {
1190
+ "type": "string"
1191
+ }
1192
+ },
1193
+ "cpuLimit": {
1194
+ "type": "string"
1195
+ },
1196
+ "cpuRequest": {
1197
+ "type": "string"
1198
+ },
1199
+ "dedicatedPod": {
1200
+ "description": "Specify if a container should run in its own separated pod, instead of running as part of the main development environment pod.\n\nDefault value is `false`",
1201
+ "type": "boolean"
1202
+ },
1203
+ "endpoints": {
1204
+ "type": "array",
1205
+ "items": {
1206
+ "type": "object",
1207
+ "required": [
1208
+ "name"
1209
+ ],
1210
+ "properties": {
1211
+ "annotation": {
1212
+ "description": "Annotations to be added to Kubernetes Ingress or Openshift Route",
1213
+ "type": "object",
1214
+ "additionalProperties": {
1215
+ "type": "string"
1216
+ }
1217
+ },
1218
+ "attributes": {
1219
+ "description": "Map of implementation-dependant string-based free-form attributes.\n\nExamples of Che-specific attributes:\n- cookiesAuthEnabled: \"true\" / \"false\",\n- type: \"terminal\" / \"ide\" / \"ide-dev\",",
1220
+ "type": "object",
1221
+ "additionalProperties": true
1222
+ },
1223
+ "exposure": {
1224
+ "description": "Describes how the endpoint should be exposed on the network.\n- `public` means that the endpoint will be exposed on the public network, typically through a K8S ingress or an OpenShift route.\n- `internal` means that the endpoint will be exposed internally outside of the main devworkspace POD, typically by K8S services, to be consumed by other elements running on the same cloud internal network.\n- `none` means that the endpoint will not be exposed and will only be accessible inside the main devworkspace POD, on a local address.\n\nDefault value is `public`",
1225
+ "type": "string",
1226
+ "enum": [
1227
+ "public",
1228
+ "internal",
1229
+ "none"
1230
+ ]
1231
+ },
1232
+ "name": {
1233
+ "type": "string",
1234
+ "maxLength": 15,
1235
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
1236
+ },
1237
+ "path": {
1238
+ "description": "Path of the endpoint URL",
1239
+ "type": "string"
1240
+ },
1241
+ "protocol": {
1242
+ "description": "Describes the application and transport protocols of the traffic that will go through this endpoint.\n- `http`: Endpoint will have `http` traffic, typically on a TCP connection. It will be automaticaly promoted to `https` when the `secure` field is set to `true`.\n- `https`: Endpoint will have `https` traffic, typically on a TCP connection.\n- `ws`: Endpoint will have `ws` traffic, typically on a TCP connection. It will be automaticaly promoted to `wss` when the `secure` field is set to `true`.\n- `wss`: Endpoint will have `wss` traffic, typically on a TCP connection.\n- `tcp`: Endpoint will have traffic on a TCP connection, without specifying an application protocol.\n- `udp`: Endpoint will have traffic on an UDP connection, without specifying an application protocol.\n\nDefault value is `http`",
1243
+ "type": "string",
1244
+ "enum": [
1245
+ "http",
1246
+ "https",
1247
+ "ws",
1248
+ "wss",
1249
+ "tcp",
1250
+ "udp"
1251
+ ]
1252
+ },
1253
+ "secure": {
1254
+ "description": "Describes whether the endpoint should be secured and protected by some authentication process. This requires a protocol of `https` or `wss`.",
1255
+ "type": "boolean"
1256
+ },
1257
+ "targetPort": {
1258
+ "description": "Port number to be used within the container component. The same port cannot be used by two different container components.",
1259
+ "type": "integer"
1260
+ }
1261
+ },
1262
+ "additionalProperties": false
1263
+ }
1264
+ },
1265
+ "env": {
1266
+ "description": "Environment variables used in this container.\n\nThe following variables are reserved and cannot be overridden via env:\n\n - `$PROJECTS_ROOT`\n\n - `$PROJECT_SOURCE`",
1267
+ "type": "array",
1268
+ "items": {
1269
+ "type": "object",
1270
+ "required": [
1271
+ "name"
1272
+ ],
1273
+ "properties": {
1274
+ "name": {
1275
+ "type": "string"
1276
+ },
1277
+ "value": {
1278
+ "type": "string"
1279
+ }
1280
+ },
1281
+ "additionalProperties": false
1282
+ }
1283
+ },
1284
+ "image": {
1285
+ "type": "string"
1286
+ },
1287
+ "memoryLimit": {
1288
+ "type": "string"
1289
+ },
1290
+ "memoryRequest": {
1291
+ "type": "string"
1292
+ },
1293
+ "mountSources": {
1294
+ "description": "Toggles whether or not the project source code should be mounted in the component.\n\nDefaults to true for all component types except plugins and components that set `dedicatedPod` to true.",
1295
+ "type": "boolean"
1296
+ },
1297
+ "sourceMapping": {
1298
+ "description": "Optional specification of the path in the container where project sources should be transferred/mounted when `mountSources` is `true`. When omitted, the default value of /projects is used.",
1299
+ "type": "string"
1300
+ },
1301
+ "volumeMounts": {
1302
+ "description": "List of volumes mounts that should be mounted is this container.",
1303
+ "type": "array",
1304
+ "items": {
1305
+ "description": "Volume that should be mounted to a component container",
1306
+ "type": "object",
1307
+ "required": [
1308
+ "name"
1309
+ ],
1310
+ "properties": {
1311
+ "name": {
1312
+ "description": "The volume mount name is the name of an existing `Volume` component. If several containers mount the same volume name then they will reuse the same volume and will be able to access to the same files.",
1313
+ "type": "string",
1314
+ "maxLength": 63,
1315
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
1316
+ },
1317
+ "path": {
1318
+ "description": "The path in the component container where the volume should be mounted. If not path is mentioned, default path is the is `/\u003cname\u003e`.",
1319
+ "type": "string"
1320
+ }
1321
+ },
1322
+ "additionalProperties": false
1323
+ }
1324
+ }
1325
+ },
1326
+ "additionalProperties": false
1327
+ },
1328
+ "image": {
1329
+ "description": "Allows specifying the definition of an image for outer loop builds",
1330
+ "type": "object",
1331
+ "oneOf": [
1332
+ {
1333
+ "required": [
1334
+ "dockerfile"
1335
+ ]
1336
+ },
1337
+ {
1338
+ "required": [
1339
+ "autoBuild"
1340
+ ]
1341
+ }
1342
+ ],
1343
+ "properties": {
1344
+ "autoBuild": {
1345
+ "description": "Defines if the image should be built during startup.\n\nDefault value is `false`",
1346
+ "type": "boolean"
1347
+ },
1348
+ "dockerfile": {
1349
+ "description": "Allows specifying dockerfile type build",
1350
+ "type": "object",
1351
+ "oneOf": [
1352
+ {
1353
+ "required": [
1354
+ "uri"
1355
+ ]
1356
+ },
1357
+ {
1358
+ "required": [
1359
+ "devfileRegistry"
1360
+ ]
1361
+ },
1362
+ {
1363
+ "required": [
1364
+ "git"
1365
+ ]
1366
+ }
1367
+ ],
1368
+ "properties": {
1369
+ "args": {
1370
+ "description": "The arguments to supply to the dockerfile build.",
1371
+ "type": "array",
1372
+ "items": {
1373
+ "type": "string"
1374
+ }
1375
+ },
1376
+ "buildContext": {
1377
+ "description": "Path of source directory to establish build context. Defaults to ${PROJECT_SOURCE} in the container",
1378
+ "type": "string"
1379
+ },
1380
+ "devfileRegistry": {
1381
+ "description": "Dockerfile's Devfile Registry source",
1382
+ "type": "object",
1383
+ "properties": {
1384
+ "id": {
1385
+ "description": "Id in a devfile registry that contains a Dockerfile. The src in the OCI registry required for the Dockerfile build will be downloaded for building the image.",
1386
+ "type": "string"
1387
+ },
1388
+ "registryUrl": {
1389
+ "description": "Devfile Registry URL to pull the Dockerfile from when using the Devfile Registry as Dockerfile src. To ensure the Dockerfile gets resolved consistently in different environments, it is recommended to always specify the `devfileRegistryUrl` when `Id` is used.",
1390
+ "type": "string"
1391
+ }
1392
+ },
1393
+ "additionalProperties": false
1394
+ },
1395
+ "git": {
1396
+ "description": "Dockerfile's Git source",
1397
+ "type": "object",
1398
+ "properties": {
1399
+ "checkoutFrom": {
1400
+ "description": "Defines from what the project should be checked out. Required if there are more than one remote configured",
1401
+ "type": "object",
1402
+ "properties": {
1403
+ "remote": {
1404
+ "description": "The remote name should be used as init. Required if there are more than one remote configured",
1405
+ "type": "string"
1406
+ },
1407
+ "revision": {
1408
+ "description": "The revision to checkout from. Should be branch name, tag or commit id. Default branch is used if missing or specified revision is not found.",
1409
+ "type": "string"
1410
+ }
1411
+ },
1412
+ "additionalProperties": false
1413
+ },
1414
+ "fileLocation": {
1415
+ "description": "Location of the Dockerfile in the Git repository when using git as Dockerfile src. Defaults to Dockerfile.",
1416
+ "type": "string"
1417
+ },
1418
+ "remotes": {
1419
+ "description": "The remotes map which should be initialized in the git project. Projects must have at least one remote configured while StarterProjects \u0026 Image Component's Git source can only have at most one remote configured.",
1420
+ "type": "object",
1421
+ "additionalProperties": {
1422
+ "type": "string"
1423
+ }
1424
+ }
1425
+ },
1426
+ "additionalProperties": false
1427
+ },
1428
+ "rootRequired": {
1429
+ "description": "Specify if a privileged builder pod is required.\n\nDefault value is `false`",
1430
+ "type": "boolean"
1431
+ },
1432
+ "uri": {
1433
+ "description": "URI Reference of a Dockerfile. It can be a full URL or a relative URI from the current devfile as the base URI.",
1434
+ "type": "string"
1435
+ }
1436
+ },
1437
+ "additionalProperties": false
1438
+ },
1439
+ "imageName": {
1440
+ "description": "Name of the image for the resulting outerloop build",
1441
+ "type": "string"
1442
+ }
1443
+ },
1444
+ "additionalProperties": false
1445
+ },
1446
+ "kubernetes": {
1447
+ "description": "Allows importing into the devworkspace the Kubernetes resources defined in a given manifest. For example this allows reusing the Kubernetes definitions used to deploy some runtime components in production.",
1448
+ "type": "object",
1449
+ "oneOf": [
1450
+ {
1451
+ "required": [
1452
+ "uri"
1453
+ ]
1454
+ },
1455
+ {
1456
+ "required": [
1457
+ "inlined"
1458
+ ]
1459
+ }
1460
+ ],
1461
+ "properties": {
1462
+ "deployByDefault": {
1463
+ "description": "Defines if the component should be deployed during startup.\n\nDefault value is `false`",
1464
+ "type": "boolean"
1465
+ },
1466
+ "endpoints": {
1467
+ "type": "array",
1468
+ "items": {
1469
+ "type": "object",
1470
+ "required": [
1471
+ "name"
1472
+ ],
1473
+ "properties": {
1474
+ "annotation": {
1475
+ "description": "Annotations to be added to Kubernetes Ingress or Openshift Route",
1476
+ "type": "object",
1477
+ "additionalProperties": {
1478
+ "type": "string"
1479
+ }
1480
+ },
1481
+ "attributes": {
1482
+ "description": "Map of implementation-dependant string-based free-form attributes.\n\nExamples of Che-specific attributes:\n- cookiesAuthEnabled: \"true\" / \"false\",\n- type: \"terminal\" / \"ide\" / \"ide-dev\",",
1483
+ "type": "object",
1484
+ "additionalProperties": true
1485
+ },
1486
+ "exposure": {
1487
+ "description": "Describes how the endpoint should be exposed on the network.\n- `public` means that the endpoint will be exposed on the public network, typically through a K8S ingress or an OpenShift route.\n- `internal` means that the endpoint will be exposed internally outside of the main devworkspace POD, typically by K8S services, to be consumed by other elements running on the same cloud internal network.\n- `none` means that the endpoint will not be exposed and will only be accessible inside the main devworkspace POD, on a local address.\n\nDefault value is `public`",
1488
+ "type": "string",
1489
+ "enum": [
1490
+ "public",
1491
+ "internal",
1492
+ "none"
1493
+ ]
1494
+ },
1495
+ "name": {
1496
+ "type": "string",
1497
+ "maxLength": 15,
1498
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
1499
+ },
1500
+ "path": {
1501
+ "description": "Path of the endpoint URL",
1502
+ "type": "string"
1503
+ },
1504
+ "protocol": {
1505
+ "description": "Describes the application and transport protocols of the traffic that will go through this endpoint.\n- `http`: Endpoint will have `http` traffic, typically on a TCP connection. It will be automaticaly promoted to `https` when the `secure` field is set to `true`.\n- `https`: Endpoint will have `https` traffic, typically on a TCP connection.\n- `ws`: Endpoint will have `ws` traffic, typically on a TCP connection. It will be automaticaly promoted to `wss` when the `secure` field is set to `true`.\n- `wss`: Endpoint will have `wss` traffic, typically on a TCP connection.\n- `tcp`: Endpoint will have traffic on a TCP connection, without specifying an application protocol.\n- `udp`: Endpoint will have traffic on an UDP connection, without specifying an application protocol.\n\nDefault value is `http`",
1506
+ "type": "string",
1507
+ "enum": [
1508
+ "http",
1509
+ "https",
1510
+ "ws",
1511
+ "wss",
1512
+ "tcp",
1513
+ "udp"
1514
+ ]
1515
+ },
1516
+ "secure": {
1517
+ "description": "Describes whether the endpoint should be secured and protected by some authentication process. This requires a protocol of `https` or `wss`.",
1518
+ "type": "boolean"
1519
+ },
1520
+ "targetPort": {
1521
+ "description": "Port number to be used within the container component. The same port cannot be used by two different container components.",
1522
+ "type": "integer"
1523
+ }
1524
+ },
1525
+ "additionalProperties": false
1526
+ }
1527
+ },
1528
+ "inlined": {
1529
+ "description": "Inlined manifest",
1530
+ "type": "string"
1531
+ },
1532
+ "uri": {
1533
+ "description": "Location in a file fetched from a uri.",
1534
+ "type": "string"
1535
+ }
1536
+ },
1537
+ "additionalProperties": false
1538
+ },
1539
+ "name": {
1540
+ "description": "Mandatory name that allows referencing the component from other elements (such as commands) or from an external devfile that may reference this component through a parent or a plugin.",
1541
+ "type": "string",
1542
+ "maxLength": 63,
1543
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
1544
+ },
1545
+ "openshift": {
1546
+ "description": "Allows importing into the devworkspace the OpenShift resources defined in a given manifest. For example this allows reusing the OpenShift definitions used to deploy some runtime components in production.",
1547
+ "type": "object",
1548
+ "oneOf": [
1549
+ {
1550
+ "required": [
1551
+ "uri"
1552
+ ]
1553
+ },
1554
+ {
1555
+ "required": [
1556
+ "inlined"
1557
+ ]
1558
+ }
1559
+ ],
1560
+ "properties": {
1561
+ "deployByDefault": {
1562
+ "description": "Defines if the component should be deployed during startup.\n\nDefault value is `false`",
1563
+ "type": "boolean"
1564
+ },
1565
+ "endpoints": {
1566
+ "type": "array",
1567
+ "items": {
1568
+ "type": "object",
1569
+ "required": [
1570
+ "name"
1571
+ ],
1572
+ "properties": {
1573
+ "annotation": {
1574
+ "description": "Annotations to be added to Kubernetes Ingress or Openshift Route",
1575
+ "type": "object",
1576
+ "additionalProperties": {
1577
+ "type": "string"
1578
+ }
1579
+ },
1580
+ "attributes": {
1581
+ "description": "Map of implementation-dependant string-based free-form attributes.\n\nExamples of Che-specific attributes:\n- cookiesAuthEnabled: \"true\" / \"false\",\n- type: \"terminal\" / \"ide\" / \"ide-dev\",",
1582
+ "type": "object",
1583
+ "additionalProperties": true
1584
+ },
1585
+ "exposure": {
1586
+ "description": "Describes how the endpoint should be exposed on the network.\n- `public` means that the endpoint will be exposed on the public network, typically through a K8S ingress or an OpenShift route.\n- `internal` means that the endpoint will be exposed internally outside of the main devworkspace POD, typically by K8S services, to be consumed by other elements running on the same cloud internal network.\n- `none` means that the endpoint will not be exposed and will only be accessible inside the main devworkspace POD, on a local address.\n\nDefault value is `public`",
1587
+ "type": "string",
1588
+ "enum": [
1589
+ "public",
1590
+ "internal",
1591
+ "none"
1592
+ ]
1593
+ },
1594
+ "name": {
1595
+ "type": "string",
1596
+ "maxLength": 15,
1597
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
1598
+ },
1599
+ "path": {
1600
+ "description": "Path of the endpoint URL",
1601
+ "type": "string"
1602
+ },
1603
+ "protocol": {
1604
+ "description": "Describes the application and transport protocols of the traffic that will go through this endpoint.\n- `http`: Endpoint will have `http` traffic, typically on a TCP connection. It will be automaticaly promoted to `https` when the `secure` field is set to `true`.\n- `https`: Endpoint will have `https` traffic, typically on a TCP connection.\n- `ws`: Endpoint will have `ws` traffic, typically on a TCP connection. It will be automaticaly promoted to `wss` when the `secure` field is set to `true`.\n- `wss`: Endpoint will have `wss` traffic, typically on a TCP connection.\n- `tcp`: Endpoint will have traffic on a TCP connection, without specifying an application protocol.\n- `udp`: Endpoint will have traffic on an UDP connection, without specifying an application protocol.\n\nDefault value is `http`",
1605
+ "type": "string",
1606
+ "enum": [
1607
+ "http",
1608
+ "https",
1609
+ "ws",
1610
+ "wss",
1611
+ "tcp",
1612
+ "udp"
1613
+ ]
1614
+ },
1615
+ "secure": {
1616
+ "description": "Describes whether the endpoint should be secured and protected by some authentication process. This requires a protocol of `https` or `wss`.",
1617
+ "type": "boolean"
1618
+ },
1619
+ "targetPort": {
1620
+ "description": "Port number to be used within the container component. The same port cannot be used by two different container components.",
1621
+ "type": "integer"
1622
+ }
1623
+ },
1624
+ "additionalProperties": false
1625
+ }
1626
+ },
1627
+ "inlined": {
1628
+ "description": "Inlined manifest",
1629
+ "type": "string"
1630
+ },
1631
+ "uri": {
1632
+ "description": "Location in a file fetched from a uri.",
1633
+ "type": "string"
1634
+ }
1635
+ },
1636
+ "additionalProperties": false
1637
+ },
1638
+ "volume": {
1639
+ "description": "Allows specifying the definition of a volume shared by several other components",
1640
+ "type": "object",
1641
+ "properties": {
1642
+ "ephemeral": {
1643
+ "description": "Ephemeral volumes are not stored persistently across restarts. Defaults to false",
1644
+ "type": "boolean"
1645
+ },
1646
+ "size": {
1647
+ "description": "Size of the volume",
1648
+ "type": "string"
1649
+ }
1650
+ },
1651
+ "additionalProperties": false
1652
+ }
1653
+ },
1654
+ "additionalProperties": false
1655
+ }
1656
+ },
1657
+ "id": {
1658
+ "description": "Id in a registry that contains a Devfile yaml file",
1659
+ "type": "string"
1660
+ },
1661
+ "kubernetes": {
1662
+ "description": "Reference to a Kubernetes CRD of type DevWorkspaceTemplate",
1663
+ "type": "object",
1664
+ "required": [
1665
+ "name"
1666
+ ],
1667
+ "properties": {
1668
+ "name": {
1669
+ "type": "string"
1670
+ },
1671
+ "namespace": {
1672
+ "type": "string"
1673
+ }
1674
+ },
1675
+ "additionalProperties": false
1676
+ },
1677
+ "projects": {
1678
+ "description": "Overrides of projects encapsulated in a parent devfile. Overriding is done according to K8S strategic merge patch standard rules.",
1679
+ "type": "array",
1680
+ "items": {
1681
+ "type": "object",
1682
+ "required": [
1683
+ "name"
1684
+ ],
1685
+ "oneOf": [
1686
+ {
1687
+ "required": [
1688
+ "git"
1689
+ ]
1690
+ },
1691
+ {
1692
+ "required": [
1693
+ "zip"
1694
+ ]
1695
+ }
1696
+ ],
1697
+ "properties": {
1698
+ "attributes": {
1699
+ "description": "Map of implementation-dependant free-form YAML attributes.",
1700
+ "type": "object",
1701
+ "additionalProperties": true
1702
+ },
1703
+ "clonePath": {
1704
+ "description": "Path relative to the root of the projects to which this project should be cloned into. This is a unix-style relative path (i.e. uses forward slashes). The path is invalid if it is absolute or tries to escape the project root through the usage of '..'. If not specified, defaults to the project name.",
1705
+ "type": "string"
1706
+ },
1707
+ "git": {
1708
+ "description": "Project's Git source",
1709
+ "type": "object",
1710
+ "properties": {
1711
+ "checkoutFrom": {
1712
+ "description": "Defines from what the project should be checked out. Required if there are more than one remote configured",
1713
+ "type": "object",
1714
+ "properties": {
1715
+ "remote": {
1716
+ "description": "The remote name should be used as init. Required if there are more than one remote configured",
1717
+ "type": "string"
1718
+ },
1719
+ "revision": {
1720
+ "description": "The revision to checkout from. Should be branch name, tag or commit id. Default branch is used if missing or specified revision is not found.",
1721
+ "type": "string"
1722
+ }
1723
+ },
1724
+ "additionalProperties": false
1725
+ },
1726
+ "remotes": {
1727
+ "description": "The remotes map which should be initialized in the git project. Projects must have at least one remote configured while StarterProjects \u0026 Image Component's Git source can only have at most one remote configured.",
1728
+ "type": "object",
1729
+ "additionalProperties": {
1730
+ "type": "string"
1731
+ }
1732
+ }
1733
+ },
1734
+ "additionalProperties": false
1735
+ },
1736
+ "name": {
1737
+ "description": "Project name",
1738
+ "type": "string",
1739
+ "maxLength": 63,
1740
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
1741
+ },
1742
+ "zip": {
1743
+ "description": "Project's Zip source",
1744
+ "type": "object",
1745
+ "properties": {
1746
+ "location": {
1747
+ "description": "Zip project's source location address. Should be file path of the archive, e.g. file://$FILE_PATH",
1748
+ "type": "string"
1749
+ }
1750
+ },
1751
+ "additionalProperties": false
1752
+ }
1753
+ },
1754
+ "additionalProperties": false
1755
+ }
1756
+ },
1757
+ "registryUrl": {
1758
+ "description": "Registry URL to pull the parent devfile from when using id in the parent reference. To ensure the parent devfile gets resolved consistently in different environments, it is recommended to always specify the `registryUrl` when `id` is used.",
1759
+ "type": "string"
1760
+ },
1761
+ "starterProjects": {
1762
+ "description": "Overrides of starterProjects encapsulated in a parent devfile. Overriding is done according to K8S strategic merge patch standard rules.",
1763
+ "type": "array",
1764
+ "items": {
1765
+ "type": "object",
1766
+ "required": [
1767
+ "name"
1768
+ ],
1769
+ "oneOf": [
1770
+ {
1771
+ "required": [
1772
+ "git"
1773
+ ]
1774
+ },
1775
+ {
1776
+ "required": [
1777
+ "zip"
1778
+ ]
1779
+ }
1780
+ ],
1781
+ "properties": {
1782
+ "attributes": {
1783
+ "description": "Map of implementation-dependant free-form YAML attributes.",
1784
+ "type": "object",
1785
+ "additionalProperties": true
1786
+ },
1787
+ "description": {
1788
+ "description": "Description of a starter project",
1789
+ "type": "string"
1790
+ },
1791
+ "git": {
1792
+ "description": "Project's Git source",
1793
+ "type": "object",
1794
+ "properties": {
1795
+ "checkoutFrom": {
1796
+ "description": "Defines from what the project should be checked out. Required if there are more than one remote configured",
1797
+ "type": "object",
1798
+ "properties": {
1799
+ "remote": {
1800
+ "description": "The remote name should be used as init. Required if there are more than one remote configured",
1801
+ "type": "string"
1802
+ },
1803
+ "revision": {
1804
+ "description": "The revision to checkout from. Should be branch name, tag or commit id. Default branch is used if missing or specified revision is not found.",
1805
+ "type": "string"
1806
+ }
1807
+ },
1808
+ "additionalProperties": false
1809
+ },
1810
+ "remotes": {
1811
+ "description": "The remotes map which should be initialized in the git project. Projects must have at least one remote configured while StarterProjects \u0026 Image Component's Git source can only have at most one remote configured.",
1812
+ "type": "object",
1813
+ "additionalProperties": {
1814
+ "type": "string"
1815
+ }
1816
+ }
1817
+ },
1818
+ "additionalProperties": false
1819
+ },
1820
+ "name": {
1821
+ "description": "Project name",
1822
+ "type": "string",
1823
+ "maxLength": 63,
1824
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
1825
+ },
1826
+ "subDir": {
1827
+ "description": "Sub-directory from a starter project to be used as root for starter project.",
1828
+ "type": "string"
1829
+ },
1830
+ "zip": {
1831
+ "description": "Project's Zip source",
1832
+ "type": "object",
1833
+ "properties": {
1834
+ "location": {
1835
+ "description": "Zip project's source location address. Should be file path of the archive, e.g. file://$FILE_PATH",
1836
+ "type": "string"
1837
+ }
1838
+ },
1839
+ "additionalProperties": false
1840
+ }
1841
+ },
1842
+ "additionalProperties": false
1843
+ }
1844
+ },
1845
+ "uri": {
1846
+ "description": "URI Reference of a parent devfile YAML file. It can be a full URL or a relative URI with the current devfile as the base URI.",
1847
+ "type": "string"
1848
+ },
1849
+ "variables": {
1850
+ "description": "Overrides of variables encapsulated in a parent devfile. Overriding is done according to K8S strategic merge patch standard rules.",
1851
+ "type": "object",
1852
+ "additionalProperties": {
1853
+ "type": "string"
1854
+ }
1855
+ },
1856
+ "version": {
1857
+ "description": "Specific stack/sample version to pull the parent devfile from, when using id in the parent reference. To specify `version`, `id` must be defined and used as the import reference source. `version` can be either a specific stack version, or `latest`. If no `version` specified, default version will be used.",
1858
+ "type": "string",
1859
+ "pattern": "^(latest)|(([1-9])\\.([0-9]+)\\.([0-9]+)(\\-[0-9a-z-]+(\\.[0-9a-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?)$"
1860
+ }
1861
+ },
1862
+ "additionalProperties": false
1863
+ },
1864
+ "projects": {
1865
+ "description": "Projects worked on in the devworkspace, containing names and sources locations",
1866
+ "type": "array",
1867
+ "items": {
1868
+ "type": "object",
1869
+ "required": [
1870
+ "name"
1871
+ ],
1872
+ "oneOf": [
1873
+ {
1874
+ "required": [
1875
+ "git"
1876
+ ]
1877
+ },
1878
+ {
1879
+ "required": [
1880
+ "zip"
1881
+ ]
1882
+ }
1883
+ ],
1884
+ "properties": {
1885
+ "attributes": {
1886
+ "description": "Map of implementation-dependant free-form YAML attributes.",
1887
+ "type": "object",
1888
+ "additionalProperties": true
1889
+ },
1890
+ "clonePath": {
1891
+ "description": "Path relative to the root of the projects to which this project should be cloned into. This is a unix-style relative path (i.e. uses forward slashes). The path is invalid if it is absolute or tries to escape the project root through the usage of '..'. If not specified, defaults to the project name.",
1892
+ "type": "string"
1893
+ },
1894
+ "git": {
1895
+ "description": "Project's Git source",
1896
+ "type": "object",
1897
+ "required": [
1898
+ "remotes"
1899
+ ],
1900
+ "properties": {
1901
+ "checkoutFrom": {
1902
+ "description": "Defines from what the project should be checked out. Required if there are more than one remote configured",
1903
+ "type": "object",
1904
+ "properties": {
1905
+ "remote": {
1906
+ "description": "The remote name should be used as init. Required if there are more than one remote configured",
1907
+ "type": "string"
1908
+ },
1909
+ "revision": {
1910
+ "description": "The revision to checkout from. Should be branch name, tag or commit id. Default branch is used if missing or specified revision is not found.",
1911
+ "type": "string"
1912
+ }
1913
+ },
1914
+ "additionalProperties": false
1915
+ },
1916
+ "remotes": {
1917
+ "description": "The remotes map which should be initialized in the git project. Projects must have at least one remote configured while StarterProjects \u0026 Image Component's Git source can only have at most one remote configured.",
1918
+ "type": "object",
1919
+ "additionalProperties": {
1920
+ "type": "string"
1921
+ }
1922
+ }
1923
+ },
1924
+ "additionalProperties": false
1925
+ },
1926
+ "name": {
1927
+ "description": "Project name",
1928
+ "type": "string",
1929
+ "maxLength": 63,
1930
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
1931
+ },
1932
+ "zip": {
1933
+ "description": "Project's Zip source",
1934
+ "type": "object",
1935
+ "properties": {
1936
+ "location": {
1937
+ "description": "Zip project's source location address. Should be file path of the archive, e.g. file://$FILE_PATH",
1938
+ "type": "string"
1939
+ }
1940
+ },
1941
+ "additionalProperties": false
1942
+ }
1943
+ },
1944
+ "additionalProperties": false
1945
+ }
1946
+ },
1947
+ "schemaVersion": {
1948
+ "description": "Devfile schema version",
1949
+ "type": "string",
1950
+ "pattern": "^([2-9])\\.([0-9]+)\\.([0-9]+)(\\-[0-9a-z-]+(\\.[0-9a-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$"
1951
+ },
1952
+ "starterProjects": {
1953
+ "description": "StarterProjects is a project that can be used as a starting point when bootstrapping new projects",
1954
+ "type": "array",
1955
+ "items": {
1956
+ "type": "object",
1957
+ "required": [
1958
+ "name"
1959
+ ],
1960
+ "oneOf": [
1961
+ {
1962
+ "required": [
1963
+ "git"
1964
+ ]
1965
+ },
1966
+ {
1967
+ "required": [
1968
+ "zip"
1969
+ ]
1970
+ }
1971
+ ],
1972
+ "properties": {
1973
+ "attributes": {
1974
+ "description": "Map of implementation-dependant free-form YAML attributes.",
1975
+ "type": "object",
1976
+ "additionalProperties": true
1977
+ },
1978
+ "description": {
1979
+ "description": "Description of a starter project",
1980
+ "type": "string"
1981
+ },
1982
+ "git": {
1983
+ "description": "Project's Git source",
1984
+ "type": "object",
1985
+ "required": [
1986
+ "remotes"
1987
+ ],
1988
+ "properties": {
1989
+ "checkoutFrom": {
1990
+ "description": "Defines from what the project should be checked out. Required if there are more than one remote configured",
1991
+ "type": "object",
1992
+ "properties": {
1993
+ "remote": {
1994
+ "description": "The remote name should be used as init. Required if there are more than one remote configured",
1995
+ "type": "string"
1996
+ },
1997
+ "revision": {
1998
+ "description": "The revision to checkout from. Should be branch name, tag or commit id. Default branch is used if missing or specified revision is not found.",
1999
+ "type": "string"
2000
+ }
2001
+ },
2002
+ "additionalProperties": false
2003
+ },
2004
+ "remotes": {
2005
+ "description": "The remotes map which should be initialized in the git project. Projects must have at least one remote configured while StarterProjects \u0026 Image Component's Git source can only have at most one remote configured.",
2006
+ "type": "object",
2007
+ "additionalProperties": {
2008
+ "type": "string"
2009
+ }
2010
+ }
2011
+ },
2012
+ "additionalProperties": false
2013
+ },
2014
+ "name": {
2015
+ "description": "Project name",
2016
+ "type": "string",
2017
+ "maxLength": 63,
2018
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
2019
+ },
2020
+ "subDir": {
2021
+ "description": "Sub-directory from a starter project to be used as root for starter project.",
2022
+ "type": "string"
2023
+ },
2024
+ "zip": {
2025
+ "description": "Project's Zip source",
2026
+ "type": "object",
2027
+ "properties": {
2028
+ "location": {
2029
+ "description": "Zip project's source location address. Should be file path of the archive, e.g. file://$FILE_PATH",
2030
+ "type": "string"
2031
+ }
2032
+ },
2033
+ "additionalProperties": false
2034
+ }
2035
+ },
2036
+ "additionalProperties": false
2037
+ }
2038
+ },
2039
+ "variables": {
2040
+ "description": "Map of key-value variables used for string replacement in the devfile. Values can be referenced via {{variable-key}} to replace the corresponding value in string fields in the devfile. Replacement cannot be used for\n\n - schemaVersion, metadata, parent source\n\n - element identifiers, e.g. command id, component name, endpoint name, project name\n\n - references to identifiers, e.g. in events, a command's component, container's volume mount name\n\n - string enums, e.g. command group kind, endpoint exposure",
2041
+ "type": "object",
2042
+ "additionalProperties": {
2043
+ "type": "string"
2044
+ }
2045
+ }
2046
+ },
2047
+ "additionalProperties": false
2048
+ }