summaryrefslogtreecommitdiffstats
path: root/mod/component-json-schemas
diff options
context:
space:
mode:
authorTony Hansen <tony@att.com>2021-01-27 19:14:55 +0000
committerGerrit Code Review <gerrit@onap.org>2021-01-27 19:14:55 +0000
commit0a405a9b4515f960d36d254032db680e97ab1e94 (patch)
tree6b8bd025230355eb1caf07885dee14c8d476812c /mod/component-json-schemas
parenta958d9600cec4c9599d517178457228577542829 (diff)
parent848e92cfd43797c891399319752c9fd07b036f19 (diff)
Merge "Add support for config_volume in blueprint generator"
Diffstat (limited to 'mod/component-json-schemas')
-rw-r--r--mod/component-json-schemas/component-specification/dcae-cli-v2/component-spec-schema.json55
1 files changed, 44 insertions, 11 deletions
diff --git a/mod/component-json-schemas/component-specification/dcae-cli-v2/component-spec-schema.json b/mod/component-json-schemas/component-specification/dcae-cli-v2/component-spec-schema.json
index 7d576c0..56dbf3a 100644
--- a/mod/component-json-schemas/component-specification/dcae-cli-v2/component-spec-schema.json
+++ b/mod/component-json-schemas/component-specification/dcae-cli-v2/component-spec-schema.json
@@ -874,17 +874,10 @@
"type": "array",
"items": {
"type": "object",
- "properties": {
- "host":{
- "type":"object",
- "path": {"type": "string"}
- },
- "container":{
- "type":"object",
- "bind": { "type": "string"},
- "mode": { "type": "string"}
- }
- }
+ "oneOf": [
+ { "$ref": "#/definitions/host_path_volume" },
+ { "$ref": "#/definitions/config_map_volume" }
+ ]
}
}
},
@@ -893,6 +886,46 @@
],
"additionalProperties": false
},
+ "host_path_volume": {
+ "type": "object",
+ "properties": {
+ "host": {
+ "type": "object",
+ "path": {
+ "type": "string"
+ }
+ },
+ "container": {
+ "type": "object",
+ "bind": {
+ "type": "string"
+ },
+ "mode": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "config_map_volume": {
+ "type": "object",
+ "properties": {
+ "config_volume": {
+ "type": "object",
+ "name": {
+ "type": "string"
+ }
+ },
+ "container": {
+ "type": "object",
+ "bind": {
+ "type": "string"
+ },
+ "mode": {
+ "type": "string"
+ }
+ }
+ }
+ },
"docker_healthcheck_http": {
"properties": {
"type": {