Skip to content

Commit

Permalink
feat(devfile): Update devfile 2.1 schema to the revision used by DevW…
Browse files Browse the repository at this point in the history
…orkspace Operator

(attributes being available at the root level)
devfile/devworkspace-operator#406

Change-Id: I5d8ee432aeaf62a9453cc23d443394776eb633ee
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
  • Loading branch information
benoitf committed May 20, 2021
1 parent 69e0198 commit 709542b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
"schemaVersion"
],
"properties": {
"attributes": {
"description": "Map of implementation-dependant free-form YAML attributes.",
"type": "object",
"additionalProperties": true
},
"commands": {
"description": "Predefined, ready-to-use, devworkspace-related commands",
"type": "array",
Expand Down Expand Up @@ -632,7 +637,7 @@
"type": "object",
"properties": {
"attributes": {
"description": "Map of implementation-dependant free-form YAML attributes.",
"description": "Map of implementation-dependant free-form YAML attributes. Deprecated, use the top-level attributes field instead.",
"type": "object",
"additionalProperties": true
},
Expand Down Expand Up @@ -704,6 +709,11 @@
}
],
"properties": {
"attributes": {
"description": "Overrides of attributes encapsulated in a parent devfile. Overriding is done according to K8S strategic merge patch standard rules.",
"type": "object",
"additionalProperties": true
},
"commands": {
"description": "Overrides of commands encapsulated in a parent devfile or a plugin. Overriding is done according to K8S strategic merge patch standard rules.",
"type": "array",
Expand Down Expand Up @@ -1524,6 +1534,13 @@
"uri": {
"description": "Uri of a Devfile yaml file",
"type": "string"
},
"variables": {
"description": "Overrides of variables encapsulated in a parent devfile. Overriding is done according to K8S strategic merge patch standard rules.",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"additionalProperties": false
Expand Down Expand Up @@ -1783,6 +1800,13 @@
},
"additionalProperties": false
}
},
"variables": {
"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",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"additionalProperties": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
schemaVersion: 2.1.0-alpha
metadata:
name: spring-petclinic
attributes:
example: foo
components:
- name: maven
container:
Expand Down

0 comments on commit 709542b

Please sign in to comment.