From 848e92cfd43797c891399319752c9fd07b036f19 Mon Sep 17 00:00:00 2001 From: Tomasz Pietruszkiewicz Date: Wed, 27 Jan 2021 08:12:10 +0100 Subject: Add support for config_volume in blueprint generator Change-Id: I8160df49d20722d393eacd27049aabbb637ae6f1 Issue-ID: DCAEGEN2-2546 Signed-off-by: Tomasz Pietruszkiewicz --- .../dcae-cli-v2/component-spec-schema.json | 55 +++++++++++++++++----- 1 file changed, 44 insertions(+), 11 deletions(-) (limited to 'mod/component-json-schemas') 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": { -- cgit 1.2.3-korg