summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2016-02-21 14:57:57 +0000
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2016-02-28 21:44:08 +0000
commit4c2678539ac71e8cdbce883c2e805c2666511ad0 (patch)
tree48db5da00078015ce8d4bafb04f47f583938489f
parentf0f1d047ebf67002ef080a19611d4b04404d1346 (diff)
downloadspec-4c2678539ac71e8cdbce883c2e805c2666511ad0.tar.gz
Allow upgrade-type + upgrade-location in cluster.json-schema
jetson-upgrade.morph, for example, has upgrade-type and upgrade-location Change-Id: I32b2e9d96e2a657b03114933b424396f2e345923
-rw-r--r--schemas/cluster.json-schema6
1 files changed, 5 insertions, 1 deletions
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.