Skip to content

Commit e9ab650

Browse files
committed
Update devfile schema based on devfile/api@ff3c01b
1 parent 6d0d2f8 commit e9ab650

File tree

1 file changed

+25
-1
lines changed
  • docs/modules/user-guide/attachments/jsonschemas/next

1 file changed

+25
-1
lines changed

docs/modules/user-guide/attachments/jsonschemas/next/devfile.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
"schemaVersion"
77
],
88
"properties": {
9+
"attributes": {
10+
"description": "Map of implementation-dependant free-form YAML attributes.",
11+
"type": "object",
12+
"additionalProperties": true
13+
},
914
"commands": {
1015
"description": "Predefined, ready-to-use, devworkspace-related commands",
1116
"type": "array",
@@ -632,7 +637,7 @@
632637
"type": "object",
633638
"properties": {
634639
"attributes": {
635-
"description": "Map of implementation-dependant free-form YAML attributes.",
640+
"description": "Map of implementation-dependant free-form YAML attributes. Deprecated, use the top-level attributes field instead.",
636641
"type": "object",
637642
"additionalProperties": true
638643
},
@@ -704,6 +709,11 @@
704709
}
705710
],
706711
"properties": {
712+
"attributes": {
713+
"description": "Overrides of attributes encapsulated in a parent devfile. Overriding is done according to K8S strategic merge patch standard rules.",
714+
"type": "object",
715+
"additionalProperties": true
716+
},
707717
"commands": {
708718
"description": "Overrides of commands encapsulated in a parent devfile or a plugin. Overriding is done according to K8S strategic merge patch standard rules.",
709719
"type": "array",
@@ -1524,6 +1534,13 @@
15241534
"uri": {
15251535
"description": "Uri of a Devfile yaml file",
15261536
"type": "string"
1537+
},
1538+
"variables": {
1539+
"description": "Overrides of variables encapsulated in a parent devfile. Overriding is done according to K8S strategic merge patch standard rules.",
1540+
"type": "object",
1541+
"additionalProperties": {
1542+
"type": "string"
1543+
}
15271544
}
15281545
},
15291546
"additionalProperties": false
@@ -1783,6 +1800,13 @@
17831800
},
17841801
"additionalProperties": false
17851802
}
1803+
},
1804+
"variables": {
1805+
"description": "Map of key-value variables used for string replacement in the devfile. Values can 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 - element identifiers, e.g. command id, component name, endpoint name, project name - references to identifiers, e.g. in events, a command's component, container's volume mount name - string enums, e.g. command group kind, endpoint exposure",
1806+
"type": "object",
1807+
"additionalProperties": {
1808+
"type": "string"
1809+
}
17861810
}
17871811
},
17881812
"additionalProperties": false

0 commit comments

Comments
 (0)