summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/resources/schema/deployment.rnc
blob: 3ce5e002e53e3fab9f5bcb5a4bcf1335025a8a5e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
# RELAX NG Compact Syntax
# Vespa Deployment file

start = element deployment {
   attribute version { "1.0" } &
   Upgrade? &
   Test? &
   Staging? &
   Prod*
}

Upgrade = element upgrade {
    attribute policy { xsd:string }
}

Test = element test {
    text
}

Staging = element staging {
    text
}

Prod = element prod {
   attribute global-service-id { text }? &
   Region* &
   Delay*
}

Region = element region {
   attribute active { xsd:boolean },
   text
}

Delay = element delay {
   attribute hours { xsd:long }? &
   attribute minutes { xsd:long }? &
   attribute seconds { xsd:long }?
}