diff options
author | Jon Bratseth <bratseth@verizonmedia.com> | 2019-10-07 14:56:05 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@verizonmedia.com> | 2019-10-07 14:56:05 +0200 |
commit | c2822a9c4833c8a0df05b4ac67a62576a8e3b8fc (patch) | |
tree | 09fbfb3876a0f365cc2a3381d9001610c4c7a655 /config-model/src/main/resources/schema | |
parent | a00fa480898a96e48f0604199a421922d0bcb7d5 (diff) |
Allow deployment instances
Diffstat (limited to 'config-model/src/main/resources/schema')
-rw-r--r-- | config-model/src/main/resources/schema/deployment.rnc | 44 |
1 files changed, 32 insertions, 12 deletions
diff --git a/config-model/src/main/resources/schema/deployment.rnc b/config-model/src/main/resources/schema/deployment.rnc index 7b15a1c062d..5f97a0e8b18 100644 --- a/config-model/src/main/resources/schema/deployment.rnc +++ b/config-model/src/main/resources/schema/deployment.rnc @@ -7,13 +7,37 @@ start = element deployment { attribute major-version { text }? & attribute athenz-domain { xsd:string }? & attribute athenz-service { xsd:string }? & - Upgrade? & - BlockChange* & - Notifications? & - Endpoints? & - Test? & - Staging? & - Prod* + Step +} + +Step = + StepExceptInstance & + Instance* + +StepExceptInstance = + Delay* & + ParallelInstances* & + Upgrade? & + BlockChange* & + Notifications* & + Endpoints? & + Test? & + Staging? & + Prod* + +Instance = element instance { + attribute id { xsd:string } & + attribute athenz-domain { xsd:string }? & + attribute athenz-service { xsd:string }? & + StepExceptInstance +} + +ParallelRegions = element parallel { + Region* +} + +ParallelInstances = element parallel { + Instance* } Upgrade = element upgrade { @@ -57,7 +81,7 @@ Prod = element prod { attribute tester-flavor { xsd:string }? & Region* & Delay* & - Parallel* + ParallelRegions* } Region = element region { @@ -71,10 +95,6 @@ Delay = element delay { attribute seconds { xsd:long }? } -Parallel = element parallel { - Region* -} - EndpointRegion = element region { text } |