From 4c2678539ac71e8cdbce883c2e805c2666511ad0 Mon Sep 17 00:00:00 2001 From: Paul Sherwood Date: Sun, 21 Feb 2016 14:57:57 +0000 Subject: Allow upgrade-type + upgrade-location in cluster.json-schema jetson-upgrade.morph, for example, has upgrade-type and upgrade-location Change-Id: I32b2e9d96e2a657b03114933b424396f2e345923 --- schemas/cluster.json-schema | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/schemas/cluster.json-schema b/schemas/cluster.json-schema index 1a628c7..40cc439 100644 --- a/schemas/cluster.json-schema +++ b/schemas/cluster.json-schema @@ -40,12 +40,16 @@ definitions: system-deployment: type: object - required: [ 'type', 'location' ] + oneOf: [ {required: [ 'type', 'location' ]}, + {required: [ 'upgrade-type', 'upgrade-location' ]} ] + additionalProperties: true properties: type: { type: string } location: { type: string } + upgrade-type: { type: string } + upgrade-location: { type: string } # Corresponds to Cluster in Baserock data model. -- cgit v1.2.1