diff options
author | Tony Hansen <tony@att.com> | 2021-01-27 19:14:55 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-01-27 19:14:55 +0000 |
commit | 0a405a9b4515f960d36d254032db680e97ab1e94 (patch) | |
tree | 6b8bd025230355eb1caf07885dee14c8d476812c /mod/component-json-schemas/component-specification/dcae-cli-v2 | |
parent | a958d9600cec4c9599d517178457228577542829 (diff) | |
parent | 848e92cfd43797c891399319752c9fd07b036f19 (diff) |
Merge "Add support for config_volume in blueprint generator"
Diffstat (limited to 'mod/component-json-schemas/component-specification/dcae-cli-v2')
-rw-r--r-- | mod/component-json-schemas/component-specification/dcae-cli-v2/component-spec-schema.json | 55 |
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": { |