@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,2211 @@
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.2",
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
+ "dependentProjects": {
784
+ "description": "Additional projects related to the main project in the devfile, contianing names and sources locations",
785
+ "type": "array",
786
+ "items": {
787
+ "type": "object",
788
+ "required": [
789
+ "name"
790
+ ],
791
+ "oneOf": [
792
+ {
793
+ "required": [
794
+ "git"
795
+ ]
796
+ },
797
+ {
798
+ "required": [
799
+ "zip"
800
+ ]
801
+ }
802
+ ],
803
+ "properties": {
804
+ "attributes": {
805
+ "description": "Map of implementation-dependant free-form YAML attributes.",
806
+ "type": "object",
807
+ "additionalProperties": true
808
+ },
809
+ "clonePath": {
810
+ "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.",
811
+ "type": "string"
812
+ },
813
+ "git": {
814
+ "description": "Project's Git source",
815
+ "type": "object",
816
+ "required": [
817
+ "remotes"
818
+ ],
819
+ "properties": {
820
+ "checkoutFrom": {
821
+ "description": "Defines from what the project should be checked out. Required if there are more than one remote configured",
822
+ "type": "object",
823
+ "properties": {
824
+ "remote": {
825
+ "description": "The remote name should be used as init. Required if there are more than one remote configured",
826
+ "type": "string"
827
+ },
828
+ "revision": {
829
+ "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.",
830
+ "type": "string"
831
+ }
832
+ },
833
+ "additionalProperties": false
834
+ },
835
+ "remotes": {
836
+ "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.",
837
+ "type": "object",
838
+ "additionalProperties": {
839
+ "type": "string"
840
+ }
841
+ }
842
+ },
843
+ "additionalProperties": false
844
+ },
845
+ "name": {
846
+ "description": "Project name",
847
+ "type": "string",
848
+ "maxLength": 63,
849
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
850
+ },
851
+ "zip": {
852
+ "description": "Project's Zip source",
853
+ "type": "object",
854
+ "properties": {
855
+ "location": {
856
+ "description": "Zip project's source location address. Should be file path of the archive, e.g. file://$FILE_PATH",
857
+ "type": "string"
858
+ }
859
+ },
860
+ "additionalProperties": false
861
+ }
862
+ },
863
+ "additionalProperties": false
864
+ }
865
+ },
866
+ "events": {
867
+ "description": "Bindings of commands to events. Each command is referred-to by its name.",
868
+ "type": "object",
869
+ "properties": {
870
+ "postStart": {
871
+ "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.",
872
+ "type": "array",
873
+ "items": {
874
+ "type": "string"
875
+ }
876
+ },
877
+ "postStop": {
878
+ "description": "IDs of commands that should be executed after stopping the devworkspace.",
879
+ "type": "array",
880
+ "items": {
881
+ "type": "string"
882
+ }
883
+ },
884
+ "preStart": {
885
+ "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.",
886
+ "type": "array",
887
+ "items": {
888
+ "type": "string"
889
+ }
890
+ },
891
+ "preStop": {
892
+ "description": "IDs of commands that should be executed before stopping the devworkspace.",
893
+ "type": "array",
894
+ "items": {
895
+ "type": "string"
896
+ }
897
+ }
898
+ },
899
+ "additionalProperties": false
900
+ },
901
+ "metadata": {
902
+ "description": "Optional metadata",
903
+ "type": "object",
904
+ "properties": {
905
+ "architectures": {
906
+ "description": "Optional list of processor architectures that the devfile supports, empty list suggests that the devfile can be used on any architecture",
907
+ "type": "array",
908
+ "uniqueItems": true,
909
+ "items": {
910
+ "description": "Architecture describes the architecture type",
911
+ "type": "string",
912
+ "enum": [
913
+ "amd64",
914
+ "arm64",
915
+ "ppc64le",
916
+ "s390x"
917
+ ]
918
+ }
919
+ },
920
+ "attributes": {
921
+ "description": "Map of implementation-dependant free-form YAML attributes. Deprecated, use the top-level attributes field instead.",
922
+ "type": "object",
923
+ "additionalProperties": true
924
+ },
925
+ "description": {
926
+ "description": "Optional devfile description",
927
+ "type": "string"
928
+ },
929
+ "displayName": {
930
+ "description": "Optional devfile display name",
931
+ "type": "string"
932
+ },
933
+ "globalMemoryLimit": {
934
+ "description": "Optional devfile global memory limit",
935
+ "type": "string"
936
+ },
937
+ "icon": {
938
+ "description": "Optional devfile icon, can be a URI or a relative path in the project",
939
+ "type": "string"
940
+ },
941
+ "language": {
942
+ "description": "Optional devfile language",
943
+ "type": "string"
944
+ },
945
+ "name": {
946
+ "description": "Optional devfile name",
947
+ "type": "string"
948
+ },
949
+ "projectType": {
950
+ "description": "Optional devfile project type",
951
+ "type": "string"
952
+ },
953
+ "provider": {
954
+ "description": "Optional devfile provider information",
955
+ "type": "string"
956
+ },
957
+ "supportUrl": {
958
+ "description": "Optional link to a page that provides support information",
959
+ "type": "string"
960
+ },
961
+ "tags": {
962
+ "description": "Optional devfile tags",
963
+ "type": "array",
964
+ "items": {
965
+ "type": "string"
966
+ }
967
+ },
968
+ "version": {
969
+ "description": "Optional semver-compatible version",
970
+ "type": "string",
971
+ "pattern": "^([0-9]+)\\.([0-9]+)\\.([0-9]+)(\\-[0-9a-z-]+(\\.[0-9a-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$"
972
+ },
973
+ "website": {
974
+ "description": "Optional devfile website",
975
+ "type": "string"
976
+ }
977
+ },
978
+ "additionalProperties": true
979
+ },
980
+ "parent": {
981
+ "description": "Parent devworkspace template",
982
+ "type": "object",
983
+ "oneOf": [
984
+ {
985
+ "required": [
986
+ "uri"
987
+ ]
988
+ },
989
+ {
990
+ "required": [
991
+ "id"
992
+ ]
993
+ },
994
+ {
995
+ "required": [
996
+ "kubernetes"
997
+ ]
998
+ }
999
+ ],
1000
+ "properties": {
1001
+ "attributes": {
1002
+ "description": "Overrides of attributes encapsulated in a parent devfile. Overriding is done according to K8S strategic merge patch standard rules.",
1003
+ "type": "object",
1004
+ "additionalProperties": true
1005
+ },
1006
+ "commands": {
1007
+ "description": "Overrides of commands encapsulated in a parent devfile or a plugin. Overriding is done according to K8S strategic merge patch standard rules.",
1008
+ "type": "array",
1009
+ "items": {
1010
+ "type": "object",
1011
+ "required": [
1012
+ "id"
1013
+ ],
1014
+ "oneOf": [
1015
+ {
1016
+ "required": [
1017
+ "exec"
1018
+ ]
1019
+ },
1020
+ {
1021
+ "required": [
1022
+ "apply"
1023
+ ]
1024
+ },
1025
+ {
1026
+ "required": [
1027
+ "composite"
1028
+ ]
1029
+ }
1030
+ ],
1031
+ "properties": {
1032
+ "apply": {
1033
+ "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.",
1034
+ "type": "object",
1035
+ "properties": {
1036
+ "component": {
1037
+ "description": "Describes component that will be applied",
1038
+ "type": "string"
1039
+ },
1040
+ "group": {
1041
+ "description": "Defines the group this command is part of",
1042
+ "type": "object",
1043
+ "properties": {
1044
+ "isDefault": {
1045
+ "description": "Identifies the default command for a given group kind",
1046
+ "type": "boolean"
1047
+ },
1048
+ "kind": {
1049
+ "description": "Kind of group the command is part of",
1050
+ "type": "string",
1051
+ "enum": [
1052
+ "build",
1053
+ "run",
1054
+ "test",
1055
+ "debug",
1056
+ "deploy"
1057
+ ]
1058
+ }
1059
+ },
1060
+ "additionalProperties": false
1061
+ },
1062
+ "label": {
1063
+ "description": "Optional label that provides a label for this command to be used in Editor UI menus for example",
1064
+ "type": "string"
1065
+ }
1066
+ },
1067
+ "additionalProperties": false
1068
+ },
1069
+ "attributes": {
1070
+ "description": "Map of implementation-dependant free-form YAML attributes.",
1071
+ "type": "object",
1072
+ "additionalProperties": true
1073
+ },
1074
+ "composite": {
1075
+ "description": "Composite command that allows executing several sub-commands either sequentially or concurrently",
1076
+ "type": "object",
1077
+ "properties": {
1078
+ "commands": {
1079
+ "description": "The commands that comprise this composite command",
1080
+ "type": "array",
1081
+ "items": {
1082
+ "type": "string"
1083
+ }
1084
+ },
1085
+ "group": {
1086
+ "description": "Defines the group this command is part of",
1087
+ "type": "object",
1088
+ "properties": {
1089
+ "isDefault": {
1090
+ "description": "Identifies the default command for a given group kind",
1091
+ "type": "boolean"
1092
+ },
1093
+ "kind": {
1094
+ "description": "Kind of group the command is part of",
1095
+ "type": "string",
1096
+ "enum": [
1097
+ "build",
1098
+ "run",
1099
+ "test",
1100
+ "debug",
1101
+ "deploy"
1102
+ ]
1103
+ }
1104
+ },
1105
+ "additionalProperties": false
1106
+ },
1107
+ "label": {
1108
+ "description": "Optional label that provides a label for this command to be used in Editor UI menus for example",
1109
+ "type": "string"
1110
+ },
1111
+ "parallel": {
1112
+ "description": "Indicates if the sub-commands should be executed concurrently",
1113
+ "type": "boolean"
1114
+ }
1115
+ },
1116
+ "additionalProperties": false
1117
+ },
1118
+ "exec": {
1119
+ "description": "CLI Command executed in an existing component container",
1120
+ "type": "object",
1121
+ "properties": {
1122
+ "commandLine": {
1123
+ "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.",
1124
+ "type": "string"
1125
+ },
1126
+ "component": {
1127
+ "description": "Describes component to which given action relates",
1128
+ "type": "string"
1129
+ },
1130
+ "env": {
1131
+ "description": "Optional list of environment variables that have to be set before running the command",
1132
+ "type": "array",
1133
+ "items": {
1134
+ "type": "object",
1135
+ "required": [
1136
+ "name"
1137
+ ],
1138
+ "properties": {
1139
+ "name": {
1140
+ "type": "string"
1141
+ },
1142
+ "value": {
1143
+ "type": "string"
1144
+ }
1145
+ },
1146
+ "additionalProperties": false
1147
+ }
1148
+ },
1149
+ "group": {
1150
+ "description": "Defines the group this command is part of",
1151
+ "type": "object",
1152
+ "properties": {
1153
+ "isDefault": {
1154
+ "description": "Identifies the default command for a given group kind",
1155
+ "type": "boolean"
1156
+ },
1157
+ "kind": {
1158
+ "description": "Kind of group the command is part of",
1159
+ "type": "string",
1160
+ "enum": [
1161
+ "build",
1162
+ "run",
1163
+ "test",
1164
+ "debug",
1165
+ "deploy"
1166
+ ]
1167
+ }
1168
+ },
1169
+ "additionalProperties": false
1170
+ },
1171
+ "hotReloadCapable": {
1172
+ "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`",
1173
+ "type": "boolean"
1174
+ },
1175
+ "label": {
1176
+ "description": "Optional label that provides a label for this command to be used in Editor UI menus for example",
1177
+ "type": "string"
1178
+ },
1179
+ "workingDir": {
1180
+ "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.",
1181
+ "type": "string"
1182
+ }
1183
+ },
1184
+ "additionalProperties": false
1185
+ },
1186
+ "id": {
1187
+ "description": "Mandatory identifier that allows referencing this command in composite commands, from a parent, or in events.",
1188
+ "type": "string",
1189
+ "maxLength": 63,
1190
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
1191
+ }
1192
+ },
1193
+ "additionalProperties": false
1194
+ }
1195
+ },
1196
+ "components": {
1197
+ "description": "Overrides of components encapsulated in a parent devfile or a plugin. Overriding is done according to K8S strategic merge patch standard rules.",
1198
+ "type": "array",
1199
+ "items": {
1200
+ "type": "object",
1201
+ "required": [
1202
+ "name"
1203
+ ],
1204
+ "oneOf": [
1205
+ {
1206
+ "required": [
1207
+ "container"
1208
+ ]
1209
+ },
1210
+ {
1211
+ "required": [
1212
+ "kubernetes"
1213
+ ]
1214
+ },
1215
+ {
1216
+ "required": [
1217
+ "openshift"
1218
+ ]
1219
+ },
1220
+ {
1221
+ "required": [
1222
+ "volume"
1223
+ ]
1224
+ },
1225
+ {
1226
+ "required": [
1227
+ "image"
1228
+ ]
1229
+ }
1230
+ ],
1231
+ "properties": {
1232
+ "attributes": {
1233
+ "description": "Map of implementation-dependant free-form YAML attributes.",
1234
+ "type": "object",
1235
+ "additionalProperties": true
1236
+ },
1237
+ "container": {
1238
+ "description": "Allows adding and configuring devworkspace-related containers",
1239
+ "type": "object",
1240
+ "properties": {
1241
+ "annotation": {
1242
+ "description": "Annotations that should be added to specific resources for this container",
1243
+ "type": "object",
1244
+ "properties": {
1245
+ "deployment": {
1246
+ "description": "Annotations to be added to deployment",
1247
+ "type": "object",
1248
+ "additionalProperties": {
1249
+ "type": "string"
1250
+ }
1251
+ },
1252
+ "service": {
1253
+ "description": "Annotations to be added to service",
1254
+ "type": "object",
1255
+ "additionalProperties": {
1256
+ "type": "string"
1257
+ }
1258
+ }
1259
+ },
1260
+ "additionalProperties": false
1261
+ },
1262
+ "args": {
1263
+ "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.",
1264
+ "type": "array",
1265
+ "items": {
1266
+ "type": "string"
1267
+ }
1268
+ },
1269
+ "command": {
1270
+ "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.",
1271
+ "type": "array",
1272
+ "items": {
1273
+ "type": "string"
1274
+ }
1275
+ },
1276
+ "cpuLimit": {
1277
+ "type": "string"
1278
+ },
1279
+ "cpuRequest": {
1280
+ "type": "string"
1281
+ },
1282
+ "dedicatedPod": {
1283
+ "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`",
1284
+ "type": "boolean"
1285
+ },
1286
+ "endpoints": {
1287
+ "type": "array",
1288
+ "items": {
1289
+ "type": "object",
1290
+ "required": [
1291
+ "name"
1292
+ ],
1293
+ "properties": {
1294
+ "annotation": {
1295
+ "description": "Annotations to be added to Kubernetes Ingress or Openshift Route",
1296
+ "type": "object",
1297
+ "additionalProperties": {
1298
+ "type": "string"
1299
+ }
1300
+ },
1301
+ "attributes": {
1302
+ "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\",",
1303
+ "type": "object",
1304
+ "additionalProperties": true
1305
+ },
1306
+ "exposure": {
1307
+ "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`",
1308
+ "type": "string",
1309
+ "enum": [
1310
+ "public",
1311
+ "internal",
1312
+ "none"
1313
+ ]
1314
+ },
1315
+ "name": {
1316
+ "type": "string",
1317
+ "maxLength": 15,
1318
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
1319
+ },
1320
+ "path": {
1321
+ "description": "Path of the endpoint URL",
1322
+ "type": "string"
1323
+ },
1324
+ "protocol": {
1325
+ "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`",
1326
+ "type": "string",
1327
+ "enum": [
1328
+ "http",
1329
+ "https",
1330
+ "ws",
1331
+ "wss",
1332
+ "tcp",
1333
+ "udp"
1334
+ ]
1335
+ },
1336
+ "secure": {
1337
+ "description": "Describes whether the endpoint should be secured and protected by some authentication process. This requires a protocol of `https` or `wss`.",
1338
+ "type": "boolean"
1339
+ },
1340
+ "targetPort": {
1341
+ "description": "Port number to be used within the container component. The same port cannot be used by two different container components.",
1342
+ "type": "integer"
1343
+ }
1344
+ },
1345
+ "additionalProperties": false
1346
+ }
1347
+ },
1348
+ "env": {
1349
+ "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`",
1350
+ "type": "array",
1351
+ "items": {
1352
+ "type": "object",
1353
+ "required": [
1354
+ "name"
1355
+ ],
1356
+ "properties": {
1357
+ "name": {
1358
+ "type": "string"
1359
+ },
1360
+ "value": {
1361
+ "type": "string"
1362
+ }
1363
+ },
1364
+ "additionalProperties": false
1365
+ }
1366
+ },
1367
+ "image": {
1368
+ "type": "string"
1369
+ },
1370
+ "memoryLimit": {
1371
+ "type": "string"
1372
+ },
1373
+ "memoryRequest": {
1374
+ "type": "string"
1375
+ },
1376
+ "mountSources": {
1377
+ "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.",
1378
+ "type": "boolean"
1379
+ },
1380
+ "sourceMapping": {
1381
+ "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.",
1382
+ "type": "string"
1383
+ },
1384
+ "volumeMounts": {
1385
+ "description": "List of volumes mounts that should be mounted is this container.",
1386
+ "type": "array",
1387
+ "items": {
1388
+ "description": "Volume that should be mounted to a component container",
1389
+ "type": "object",
1390
+ "required": [
1391
+ "name"
1392
+ ],
1393
+ "properties": {
1394
+ "name": {
1395
+ "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.",
1396
+ "type": "string",
1397
+ "maxLength": 63,
1398
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
1399
+ },
1400
+ "path": {
1401
+ "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`.",
1402
+ "type": "string"
1403
+ }
1404
+ },
1405
+ "additionalProperties": false
1406
+ }
1407
+ }
1408
+ },
1409
+ "additionalProperties": false
1410
+ },
1411
+ "image": {
1412
+ "description": "Allows specifying the definition of an image for outer loop builds",
1413
+ "type": "object",
1414
+ "oneOf": [
1415
+ {
1416
+ "required": [
1417
+ "dockerfile"
1418
+ ]
1419
+ },
1420
+ {
1421
+ "required": [
1422
+ "autoBuild"
1423
+ ]
1424
+ }
1425
+ ],
1426
+ "properties": {
1427
+ "autoBuild": {
1428
+ "description": "Defines if the image should be built during startup.\n\nDefault value is `false`",
1429
+ "type": "boolean"
1430
+ },
1431
+ "dockerfile": {
1432
+ "description": "Allows specifying dockerfile type build",
1433
+ "type": "object",
1434
+ "oneOf": [
1435
+ {
1436
+ "required": [
1437
+ "uri"
1438
+ ]
1439
+ },
1440
+ {
1441
+ "required": [
1442
+ "devfileRegistry"
1443
+ ]
1444
+ },
1445
+ {
1446
+ "required": [
1447
+ "git"
1448
+ ]
1449
+ }
1450
+ ],
1451
+ "properties": {
1452
+ "args": {
1453
+ "description": "The arguments to supply to the dockerfile build.",
1454
+ "type": "array",
1455
+ "items": {
1456
+ "type": "string"
1457
+ }
1458
+ },
1459
+ "buildContext": {
1460
+ "description": "Path of source directory to establish build context. Defaults to ${PROJECT_SOURCE} in the container",
1461
+ "type": "string"
1462
+ },
1463
+ "devfileRegistry": {
1464
+ "description": "Dockerfile's Devfile Registry source",
1465
+ "type": "object",
1466
+ "properties": {
1467
+ "id": {
1468
+ "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.",
1469
+ "type": "string"
1470
+ },
1471
+ "registryUrl": {
1472
+ "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.",
1473
+ "type": "string"
1474
+ }
1475
+ },
1476
+ "additionalProperties": false
1477
+ },
1478
+ "git": {
1479
+ "description": "Dockerfile's Git source",
1480
+ "type": "object",
1481
+ "properties": {
1482
+ "checkoutFrom": {
1483
+ "description": "Defines from what the project should be checked out. Required if there are more than one remote configured",
1484
+ "type": "object",
1485
+ "properties": {
1486
+ "remote": {
1487
+ "description": "The remote name should be used as init. Required if there are more than one remote configured",
1488
+ "type": "string"
1489
+ },
1490
+ "revision": {
1491
+ "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.",
1492
+ "type": "string"
1493
+ }
1494
+ },
1495
+ "additionalProperties": false
1496
+ },
1497
+ "fileLocation": {
1498
+ "description": "Location of the Dockerfile in the Git repository when using git as Dockerfile src. Defaults to Dockerfile.",
1499
+ "type": "string"
1500
+ },
1501
+ "remotes": {
1502
+ "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.",
1503
+ "type": "object",
1504
+ "additionalProperties": {
1505
+ "type": "string"
1506
+ }
1507
+ }
1508
+ },
1509
+ "additionalProperties": false
1510
+ },
1511
+ "rootRequired": {
1512
+ "description": "Specify if a privileged builder pod is required.\n\nDefault value is `false`",
1513
+ "type": "boolean"
1514
+ },
1515
+ "uri": {
1516
+ "description": "URI Reference of a Dockerfile. It can be a full URL or a relative URI from the current devfile as the base URI.",
1517
+ "type": "string"
1518
+ }
1519
+ },
1520
+ "additionalProperties": false
1521
+ },
1522
+ "imageName": {
1523
+ "description": "Name of the image for the resulting outerloop build",
1524
+ "type": "string"
1525
+ }
1526
+ },
1527
+ "additionalProperties": false
1528
+ },
1529
+ "kubernetes": {
1530
+ "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.",
1531
+ "type": "object",
1532
+ "oneOf": [
1533
+ {
1534
+ "required": [
1535
+ "uri"
1536
+ ]
1537
+ },
1538
+ {
1539
+ "required": [
1540
+ "inlined"
1541
+ ]
1542
+ }
1543
+ ],
1544
+ "properties": {
1545
+ "deployByDefault": {
1546
+ "description": "Defines if the component should be deployed during startup.\n\nDefault value is `false`",
1547
+ "type": "boolean"
1548
+ },
1549
+ "endpoints": {
1550
+ "type": "array",
1551
+ "items": {
1552
+ "type": "object",
1553
+ "required": [
1554
+ "name"
1555
+ ],
1556
+ "properties": {
1557
+ "annotation": {
1558
+ "description": "Annotations to be added to Kubernetes Ingress or Openshift Route",
1559
+ "type": "object",
1560
+ "additionalProperties": {
1561
+ "type": "string"
1562
+ }
1563
+ },
1564
+ "attributes": {
1565
+ "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\",",
1566
+ "type": "object",
1567
+ "additionalProperties": true
1568
+ },
1569
+ "exposure": {
1570
+ "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`",
1571
+ "type": "string",
1572
+ "enum": [
1573
+ "public",
1574
+ "internal",
1575
+ "none"
1576
+ ]
1577
+ },
1578
+ "name": {
1579
+ "type": "string",
1580
+ "maxLength": 15,
1581
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
1582
+ },
1583
+ "path": {
1584
+ "description": "Path of the endpoint URL",
1585
+ "type": "string"
1586
+ },
1587
+ "protocol": {
1588
+ "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`",
1589
+ "type": "string",
1590
+ "enum": [
1591
+ "http",
1592
+ "https",
1593
+ "ws",
1594
+ "wss",
1595
+ "tcp",
1596
+ "udp"
1597
+ ]
1598
+ },
1599
+ "secure": {
1600
+ "description": "Describes whether the endpoint should be secured and protected by some authentication process. This requires a protocol of `https` or `wss`.",
1601
+ "type": "boolean"
1602
+ },
1603
+ "targetPort": {
1604
+ "description": "Port number to be used within the container component. The same port cannot be used by two different container components.",
1605
+ "type": "integer"
1606
+ }
1607
+ },
1608
+ "additionalProperties": false
1609
+ }
1610
+ },
1611
+ "inlined": {
1612
+ "description": "Inlined manifest",
1613
+ "type": "string"
1614
+ },
1615
+ "uri": {
1616
+ "description": "Location in a file fetched from a uri.",
1617
+ "type": "string"
1618
+ }
1619
+ },
1620
+ "additionalProperties": false
1621
+ },
1622
+ "name": {
1623
+ "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.",
1624
+ "type": "string",
1625
+ "maxLength": 63,
1626
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
1627
+ },
1628
+ "openshift": {
1629
+ "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.",
1630
+ "type": "object",
1631
+ "oneOf": [
1632
+ {
1633
+ "required": [
1634
+ "uri"
1635
+ ]
1636
+ },
1637
+ {
1638
+ "required": [
1639
+ "inlined"
1640
+ ]
1641
+ }
1642
+ ],
1643
+ "properties": {
1644
+ "deployByDefault": {
1645
+ "description": "Defines if the component should be deployed during startup.\n\nDefault value is `false`",
1646
+ "type": "boolean"
1647
+ },
1648
+ "endpoints": {
1649
+ "type": "array",
1650
+ "items": {
1651
+ "type": "object",
1652
+ "required": [
1653
+ "name"
1654
+ ],
1655
+ "properties": {
1656
+ "annotation": {
1657
+ "description": "Annotations to be added to Kubernetes Ingress or Openshift Route",
1658
+ "type": "object",
1659
+ "additionalProperties": {
1660
+ "type": "string"
1661
+ }
1662
+ },
1663
+ "attributes": {
1664
+ "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\",",
1665
+ "type": "object",
1666
+ "additionalProperties": true
1667
+ },
1668
+ "exposure": {
1669
+ "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`",
1670
+ "type": "string",
1671
+ "enum": [
1672
+ "public",
1673
+ "internal",
1674
+ "none"
1675
+ ]
1676
+ },
1677
+ "name": {
1678
+ "type": "string",
1679
+ "maxLength": 15,
1680
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
1681
+ },
1682
+ "path": {
1683
+ "description": "Path of the endpoint URL",
1684
+ "type": "string"
1685
+ },
1686
+ "protocol": {
1687
+ "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`",
1688
+ "type": "string",
1689
+ "enum": [
1690
+ "http",
1691
+ "https",
1692
+ "ws",
1693
+ "wss",
1694
+ "tcp",
1695
+ "udp"
1696
+ ]
1697
+ },
1698
+ "secure": {
1699
+ "description": "Describes whether the endpoint should be secured and protected by some authentication process. This requires a protocol of `https` or `wss`.",
1700
+ "type": "boolean"
1701
+ },
1702
+ "targetPort": {
1703
+ "description": "Port number to be used within the container component. The same port cannot be used by two different container components.",
1704
+ "type": "integer"
1705
+ }
1706
+ },
1707
+ "additionalProperties": false
1708
+ }
1709
+ },
1710
+ "inlined": {
1711
+ "description": "Inlined manifest",
1712
+ "type": "string"
1713
+ },
1714
+ "uri": {
1715
+ "description": "Location in a file fetched from a uri.",
1716
+ "type": "string"
1717
+ }
1718
+ },
1719
+ "additionalProperties": false
1720
+ },
1721
+ "volume": {
1722
+ "description": "Allows specifying the definition of a volume shared by several other components",
1723
+ "type": "object",
1724
+ "properties": {
1725
+ "ephemeral": {
1726
+ "description": "Ephemeral volumes are not stored persistently across restarts. Defaults to false",
1727
+ "type": "boolean"
1728
+ },
1729
+ "size": {
1730
+ "description": "Size of the volume",
1731
+ "type": "string"
1732
+ }
1733
+ },
1734
+ "additionalProperties": false
1735
+ }
1736
+ },
1737
+ "additionalProperties": false
1738
+ }
1739
+ },
1740
+ "dependentProjects": {
1741
+ "description": "Overrides of dependentProjects encapsulated in a parent devfile. Overriding is done according to K8S strategic merge patch standard rules.",
1742
+ "type": "array",
1743
+ "items": {
1744
+ "type": "object",
1745
+ "required": [
1746
+ "name"
1747
+ ],
1748
+ "oneOf": [
1749
+ {
1750
+ "required": [
1751
+ "git"
1752
+ ]
1753
+ },
1754
+ {
1755
+ "required": [
1756
+ "zip"
1757
+ ]
1758
+ }
1759
+ ],
1760
+ "properties": {
1761
+ "attributes": {
1762
+ "description": "Map of implementation-dependant free-form YAML attributes.",
1763
+ "type": "object",
1764
+ "additionalProperties": true
1765
+ },
1766
+ "clonePath": {
1767
+ "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.",
1768
+ "type": "string"
1769
+ },
1770
+ "git": {
1771
+ "description": "Project's Git source",
1772
+ "type": "object",
1773
+ "properties": {
1774
+ "checkoutFrom": {
1775
+ "description": "Defines from what the project should be checked out. Required if there are more than one remote configured",
1776
+ "type": "object",
1777
+ "properties": {
1778
+ "remote": {
1779
+ "description": "The remote name should be used as init. Required if there are more than one remote configured",
1780
+ "type": "string"
1781
+ },
1782
+ "revision": {
1783
+ "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.",
1784
+ "type": "string"
1785
+ }
1786
+ },
1787
+ "additionalProperties": false
1788
+ },
1789
+ "remotes": {
1790
+ "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.",
1791
+ "type": "object",
1792
+ "additionalProperties": {
1793
+ "type": "string"
1794
+ }
1795
+ }
1796
+ },
1797
+ "additionalProperties": false
1798
+ },
1799
+ "name": {
1800
+ "description": "Project name",
1801
+ "type": "string",
1802
+ "maxLength": 63,
1803
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
1804
+ },
1805
+ "zip": {
1806
+ "description": "Project's Zip source",
1807
+ "type": "object",
1808
+ "properties": {
1809
+ "location": {
1810
+ "description": "Zip project's source location address. Should be file path of the archive, e.g. file://$FILE_PATH",
1811
+ "type": "string"
1812
+ }
1813
+ },
1814
+ "additionalProperties": false
1815
+ }
1816
+ },
1817
+ "additionalProperties": false
1818
+ }
1819
+ },
1820
+ "id": {
1821
+ "description": "Id in a registry that contains a Devfile yaml file",
1822
+ "type": "string"
1823
+ },
1824
+ "kubernetes": {
1825
+ "description": "Reference to a Kubernetes CRD of type DevWorkspaceTemplate",
1826
+ "type": "object",
1827
+ "required": [
1828
+ "name"
1829
+ ],
1830
+ "properties": {
1831
+ "name": {
1832
+ "type": "string"
1833
+ },
1834
+ "namespace": {
1835
+ "type": "string"
1836
+ }
1837
+ },
1838
+ "additionalProperties": false
1839
+ },
1840
+ "projects": {
1841
+ "description": "Overrides of projects encapsulated in a parent devfile. Overriding is done according to K8S strategic merge patch standard rules.",
1842
+ "type": "array",
1843
+ "items": {
1844
+ "type": "object",
1845
+ "required": [
1846
+ "name"
1847
+ ],
1848
+ "oneOf": [
1849
+ {
1850
+ "required": [
1851
+ "git"
1852
+ ]
1853
+ },
1854
+ {
1855
+ "required": [
1856
+ "zip"
1857
+ ]
1858
+ }
1859
+ ],
1860
+ "properties": {
1861
+ "attributes": {
1862
+ "description": "Map of implementation-dependant free-form YAML attributes.",
1863
+ "type": "object",
1864
+ "additionalProperties": true
1865
+ },
1866
+ "clonePath": {
1867
+ "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.",
1868
+ "type": "string"
1869
+ },
1870
+ "git": {
1871
+ "description": "Project's Git source",
1872
+ "type": "object",
1873
+ "properties": {
1874
+ "checkoutFrom": {
1875
+ "description": "Defines from what the project should be checked out. Required if there are more than one remote configured",
1876
+ "type": "object",
1877
+ "properties": {
1878
+ "remote": {
1879
+ "description": "The remote name should be used as init. Required if there are more than one remote configured",
1880
+ "type": "string"
1881
+ },
1882
+ "revision": {
1883
+ "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.",
1884
+ "type": "string"
1885
+ }
1886
+ },
1887
+ "additionalProperties": false
1888
+ },
1889
+ "remotes": {
1890
+ "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.",
1891
+ "type": "object",
1892
+ "additionalProperties": {
1893
+ "type": "string"
1894
+ }
1895
+ }
1896
+ },
1897
+ "additionalProperties": false
1898
+ },
1899
+ "name": {
1900
+ "description": "Project name",
1901
+ "type": "string",
1902
+ "maxLength": 63,
1903
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
1904
+ },
1905
+ "zip": {
1906
+ "description": "Project's Zip source",
1907
+ "type": "object",
1908
+ "properties": {
1909
+ "location": {
1910
+ "description": "Zip project's source location address. Should be file path of the archive, e.g. file://$FILE_PATH",
1911
+ "type": "string"
1912
+ }
1913
+ },
1914
+ "additionalProperties": false
1915
+ }
1916
+ },
1917
+ "additionalProperties": false
1918
+ }
1919
+ },
1920
+ "registryUrl": {
1921
+ "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.",
1922
+ "type": "string"
1923
+ },
1924
+ "starterProjects": {
1925
+ "description": "Overrides of starterProjects encapsulated in a parent devfile. Overriding is done according to K8S strategic merge patch standard rules.",
1926
+ "type": "array",
1927
+ "items": {
1928
+ "type": "object",
1929
+ "required": [
1930
+ "name"
1931
+ ],
1932
+ "oneOf": [
1933
+ {
1934
+ "required": [
1935
+ "git"
1936
+ ]
1937
+ },
1938
+ {
1939
+ "required": [
1940
+ "zip"
1941
+ ]
1942
+ }
1943
+ ],
1944
+ "properties": {
1945
+ "attributes": {
1946
+ "description": "Map of implementation-dependant free-form YAML attributes.",
1947
+ "type": "object",
1948
+ "additionalProperties": true
1949
+ },
1950
+ "description": {
1951
+ "description": "Description of a starter project",
1952
+ "type": "string"
1953
+ },
1954
+ "git": {
1955
+ "description": "Project's Git source",
1956
+ "type": "object",
1957
+ "properties": {
1958
+ "checkoutFrom": {
1959
+ "description": "Defines from what the project should be checked out. Required if there are more than one remote configured",
1960
+ "type": "object",
1961
+ "properties": {
1962
+ "remote": {
1963
+ "description": "The remote name should be used as init. Required if there are more than one remote configured",
1964
+ "type": "string"
1965
+ },
1966
+ "revision": {
1967
+ "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.",
1968
+ "type": "string"
1969
+ }
1970
+ },
1971
+ "additionalProperties": false
1972
+ },
1973
+ "remotes": {
1974
+ "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.",
1975
+ "type": "object",
1976
+ "additionalProperties": {
1977
+ "type": "string"
1978
+ }
1979
+ }
1980
+ },
1981
+ "additionalProperties": false
1982
+ },
1983
+ "name": {
1984
+ "description": "Project name",
1985
+ "type": "string",
1986
+ "maxLength": 63,
1987
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
1988
+ },
1989
+ "subDir": {
1990
+ "description": "Sub-directory from a starter project to be used as root for starter project.",
1991
+ "type": "string"
1992
+ },
1993
+ "zip": {
1994
+ "description": "Project's Zip source",
1995
+ "type": "object",
1996
+ "properties": {
1997
+ "location": {
1998
+ "description": "Zip project's source location address. Should be file path of the archive, e.g. file://$FILE_PATH",
1999
+ "type": "string"
2000
+ }
2001
+ },
2002
+ "additionalProperties": false
2003
+ }
2004
+ },
2005
+ "additionalProperties": false
2006
+ }
2007
+ },
2008
+ "uri": {
2009
+ "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.",
2010
+ "type": "string"
2011
+ },
2012
+ "variables": {
2013
+ "description": "Overrides of variables encapsulated in a parent devfile. Overriding is done according to K8S strategic merge patch standard rules.",
2014
+ "type": "object",
2015
+ "additionalProperties": {
2016
+ "type": "string"
2017
+ }
2018
+ },
2019
+ "version": {
2020
+ "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.",
2021
+ "type": "string",
2022
+ "pattern": "^(latest)|(([1-9])\\.([0-9]+)\\.([0-9]+)(\\-[0-9a-z-]+(\\.[0-9a-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?)$"
2023
+ }
2024
+ },
2025
+ "additionalProperties": false
2026
+ },
2027
+ "projects": {
2028
+ "description": "Projects worked on in the devworkspace, containing names and sources locations",
2029
+ "type": "array",
2030
+ "items": {
2031
+ "type": "object",
2032
+ "required": [
2033
+ "name"
2034
+ ],
2035
+ "oneOf": [
2036
+ {
2037
+ "required": [
2038
+ "git"
2039
+ ]
2040
+ },
2041
+ {
2042
+ "required": [
2043
+ "zip"
2044
+ ]
2045
+ }
2046
+ ],
2047
+ "properties": {
2048
+ "attributes": {
2049
+ "description": "Map of implementation-dependant free-form YAML attributes.",
2050
+ "type": "object",
2051
+ "additionalProperties": true
2052
+ },
2053
+ "clonePath": {
2054
+ "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.",
2055
+ "type": "string"
2056
+ },
2057
+ "git": {
2058
+ "description": "Project's Git source",
2059
+ "type": "object",
2060
+ "required": [
2061
+ "remotes"
2062
+ ],
2063
+ "properties": {
2064
+ "checkoutFrom": {
2065
+ "description": "Defines from what the project should be checked out. Required if there are more than one remote configured",
2066
+ "type": "object",
2067
+ "properties": {
2068
+ "remote": {
2069
+ "description": "The remote name should be used as init. Required if there are more than one remote configured",
2070
+ "type": "string"
2071
+ },
2072
+ "revision": {
2073
+ "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.",
2074
+ "type": "string"
2075
+ }
2076
+ },
2077
+ "additionalProperties": false
2078
+ },
2079
+ "remotes": {
2080
+ "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.",
2081
+ "type": "object",
2082
+ "additionalProperties": {
2083
+ "type": "string"
2084
+ }
2085
+ }
2086
+ },
2087
+ "additionalProperties": false
2088
+ },
2089
+ "name": {
2090
+ "description": "Project name",
2091
+ "type": "string",
2092
+ "maxLength": 63,
2093
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
2094
+ },
2095
+ "zip": {
2096
+ "description": "Project's Zip source",
2097
+ "type": "object",
2098
+ "properties": {
2099
+ "location": {
2100
+ "description": "Zip project's source location address. Should be file path of the archive, e.g. file://$FILE_PATH",
2101
+ "type": "string"
2102
+ }
2103
+ },
2104
+ "additionalProperties": false
2105
+ }
2106
+ },
2107
+ "additionalProperties": false
2108
+ }
2109
+ },
2110
+ "schemaVersion": {
2111
+ "description": "Devfile schema version",
2112
+ "type": "string",
2113
+ "pattern": "^([2-9])\\.([0-9]+)\\.([0-9]+)(\\-[0-9a-z-]+(\\.[0-9a-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$"
2114
+ },
2115
+ "starterProjects": {
2116
+ "description": "StarterProjects is a project that can be used as a starting point when bootstrapping new projects",
2117
+ "type": "array",
2118
+ "items": {
2119
+ "type": "object",
2120
+ "required": [
2121
+ "name"
2122
+ ],
2123
+ "oneOf": [
2124
+ {
2125
+ "required": [
2126
+ "git"
2127
+ ]
2128
+ },
2129
+ {
2130
+ "required": [
2131
+ "zip"
2132
+ ]
2133
+ }
2134
+ ],
2135
+ "properties": {
2136
+ "attributes": {
2137
+ "description": "Map of implementation-dependant free-form YAML attributes.",
2138
+ "type": "object",
2139
+ "additionalProperties": true
2140
+ },
2141
+ "description": {
2142
+ "description": "Description of a starter project",
2143
+ "type": "string"
2144
+ },
2145
+ "git": {
2146
+ "description": "Project's Git source",
2147
+ "type": "object",
2148
+ "required": [
2149
+ "remotes"
2150
+ ],
2151
+ "properties": {
2152
+ "checkoutFrom": {
2153
+ "description": "Defines from what the project should be checked out. Required if there are more than one remote configured",
2154
+ "type": "object",
2155
+ "properties": {
2156
+ "remote": {
2157
+ "description": "The remote name should be used as init. Required if there are more than one remote configured",
2158
+ "type": "string"
2159
+ },
2160
+ "revision": {
2161
+ "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.",
2162
+ "type": "string"
2163
+ }
2164
+ },
2165
+ "additionalProperties": false
2166
+ },
2167
+ "remotes": {
2168
+ "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.",
2169
+ "type": "object",
2170
+ "additionalProperties": {
2171
+ "type": "string"
2172
+ }
2173
+ }
2174
+ },
2175
+ "additionalProperties": false
2176
+ },
2177
+ "name": {
2178
+ "description": "Project name",
2179
+ "type": "string",
2180
+ "maxLength": 63,
2181
+ "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$"
2182
+ },
2183
+ "subDir": {
2184
+ "description": "Sub-directory from a starter project to be used as root for starter project.",
2185
+ "type": "string"
2186
+ },
2187
+ "zip": {
2188
+ "description": "Project's Zip source",
2189
+ "type": "object",
2190
+ "properties": {
2191
+ "location": {
2192
+ "description": "Zip project's source location address. Should be file path of the archive, e.g. file://$FILE_PATH",
2193
+ "type": "string"
2194
+ }
2195
+ },
2196
+ "additionalProperties": false
2197
+ }
2198
+ },
2199
+ "additionalProperties": false
2200
+ }
2201
+ },
2202
+ "variables": {
2203
+ "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",
2204
+ "type": "object",
2205
+ "additionalProperties": {
2206
+ "type": "string"
2207
+ }
2208
+ }
2209
+ },
2210
+ "additionalProperties": false
2211
+ }