containerrc: Remove optional parts from schema
A container can be created from a name and an image, no other part is required. Reflect that in the JSON schema, by removing most top-level required entries. Also remove the hardcoded env-vars from the schema. Signed-off-by: Enno Tensing <tenno@suij.in>
This commit is contained in:
parent
64b797d18d
commit
ef63c0de14
1 changed files with 4 additions and 27 deletions
|
@ -101,20 +101,9 @@
|
|||
]
|
||||
},
|
||||
"env": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"FOO": {
|
||||
"type": "string"
|
||||
},
|
||||
"MAN_WIDTH": {
|
||||
"type": "string"
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"FOO",
|
||||
"MAN_WIDTH"
|
||||
]
|
||||
},
|
||||
"secrets": {
|
||||
"type": "object"
|
||||
},
|
||||
|
@ -149,18 +138,6 @@
|
|||
},
|
||||
"required": [
|
||||
"name",
|
||||
"image",
|
||||
"privileged",
|
||||
"read_only",
|
||||
"replace",
|
||||
"pull_policy",
|
||||
"restart",
|
||||
"network",
|
||||
"dns",
|
||||
"ports",
|
||||
"env",
|
||||
"secrets",
|
||||
"volumes",
|
||||
"capabilities"
|
||||
"image"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue