summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2016-02-21 14:57:57 +0000
committerBaserock Gerrit <gerrit@baserock.org>2016-02-28 18:23:26 +0000
commitad641eb1949878231a3738f96b657112459a53d2 (patch)
tree17a7aeeacea5de7847822141bee9f9651d2f3d99
parentde67495d358f4a20523c4cbed7e6e60a5ceb2528 (diff)
downloaddefinitions-ad641eb1949878231a3738f96b657112459a53d2.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 1a628c7f..40cc4395 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.