diff options
author | Paul Sherwood <paul.sherwood@codethink.co.uk> | 2016-02-21 14:57:57 +0000 |
---|---|---|
committer | Baserock Gerrit <gerrit@baserock.org> | 2016-02-28 18:23:26 +0000 |
commit | ad641eb1949878231a3738f96b657112459a53d2 (patch) | |
tree | 17a7aeeacea5de7847822141bee9f9651d2f3d99 | |
parent | de67495d358f4a20523c4cbed7e6e60a5ceb2528 (diff) | |
download | definitions-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-schema | 6 |
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. |