mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 10:09:07 +00:00
fix yaml validation for image mounts
Signed-off-by: Thomas Gazagnaire <thomas@gazagnaire.org>
This commit is contained in:
parent
f603d37638
commit
1bdab6be8e
@ -56,6 +56,20 @@ var schema = string(`
|
|||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"type": "string"}
|
"items": {"type": "string"}
|
||||||
},
|
},
|
||||||
|
"mount": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"destination": { "type": "string" },
|
||||||
|
"type": { "type": "string" },
|
||||||
|
"source": { "type": "string" },
|
||||||
|
"options": { "$ref": "#/definitions/strings" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"mounts": {
|
||||||
|
"type": "array",
|
||||||
|
"items": { "$ref": "#/definitions/mount" }
|
||||||
|
},
|
||||||
"image": {
|
"image": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
@ -64,7 +78,7 @@ var schema = string(`
|
|||||||
"name": {"type": "string"},
|
"name": {"type": "string"},
|
||||||
"image": {"type": "string"},
|
"image": {"type": "string"},
|
||||||
"capabilities": { "$ref": "#/definitions/strings" },
|
"capabilities": { "$ref": "#/definitions/strings" },
|
||||||
"mounts": { "$ref": "#/definitions/strings" },
|
"mounts": { "$ref": "#/definitions/mounts" },
|
||||||
"binds": { "$ref": "#/definitions/strings" },
|
"binds": { "$ref": "#/definitions/strings" },
|
||||||
"tmpfs": { "$ref": "#/definitions/strings" },
|
"tmpfs": { "$ref": "#/definitions/strings" },
|
||||||
"command": { "$ref": "#/definitions/strings" },
|
"command": { "$ref": "#/definitions/strings" },
|
||||||
|
Loading…
Reference in New Issue
Block a user