1
0
Fork 0

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:
Enno Tensing 2025-07-29 09:25:19 +02:00
parent 64b797d18d
commit ef63c0de14
Signed by: tenno
GPG key ID: 95265603BD36E66C

View file

@ -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"
]
}
}