summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/resources/schema/common.rnc
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@verizonmedia.com>2019-05-06 10:02:49 +0200
committerJon Bratseth <bratseth@verizonmedia.com>2019-05-06 10:02:49 +0200
commit1add32ea899b62a38008cc460a42437e15f31b15 (patch)
treea8d5ecaa20880676be7af49617319eb88cfefa36 /config-model/src/main/resources/schema/common.rnc
parent21a212f66f4491ad1ae42349139ec9ec16973fa2 (diff)
Allow node allocation by resource spec
Diffstat (limited to 'config-model/src/main/resources/schema/common.rnc')
-rw-r--r--config-model/src/main/resources/schema/common.rnc9
1 files changed, 8 insertions, 1 deletions
diff --git a/config-model/src/main/resources/schema/common.rnc b/config-model/src/main/resources/schema/common.rnc
index 73882da2b01..59b40f433b5 100644
--- a/config-model/src/main/resources/schema/common.rnc
+++ b/config-model/src/main/resources/schema/common.rnc
@@ -19,7 +19,14 @@ JavaId = xsd:string { pattern = "([a-zA-Z_$][a-zA-Z\d_$]*\.)*[a-zA-Z_$][a-zA-Z\d
Nodes = element nodes {
attribute count { xsd:positiveInteger } &
attribute flavor { xsd:string }? &
- attribute docker-image { xsd:string }?
+ attribute docker-image { xsd:string }? &
+ Resources?
+}
+
+Resources = element resources {
+ attribute vcpu { xsd:double { minExclusive = "0.0" } } &
+ attribute memory { xsd:string } &
+ attribute disk { xsd:string }
}
OptionalDedicatedNodes = element nodes {