mirror of
https://github.com/andrewyng/openworker.git
synced 2026-11-20 20:37:44 +00:00
35 lines
1.6 KiB
JSON
35 lines
1.6 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"properties": {
|
|
"workloadNamespace": {"type": "string"},
|
|
"images": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {"controller": {"type": "string"}, "runner": {"type": "string"}}
|
|
},
|
|
"secrets": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {"auth": {"type": "string", "minLength": 1}, "tls": {"type": "string", "minLength": 1}}
|
|
},
|
|
"metadata": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {"storageClass": {"type": "string"}, "size": {"type": "string", "minLength": 1}, "existingClaim": {"type": "string"}}
|
|
},
|
|
"data": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {
|
|
"storageClass": {"type": "string"}, "size": {"type": "string", "minLength": 1},
|
|
"accessMode": {"enum": ["ReadWriteMany", "ReadWriteOnce", "ReadWriteOncePod"]},
|
|
"singleMount": {"type": "boolean"}
|
|
}
|
|
},
|
|
"placement": {
|
|
"type": "object", "additionalProperties": false,
|
|
"properties": {"pinNode": {"type": "string"}, "spreadSharedData": {"type": "boolean"}}
|
|
},
|
|
"imageProfiles": {"type": "object", "propertyNames": {"pattern": "^[a-z][a-z0-9-]{0,40}$"}, "additionalProperties": {"type": "string", "pattern": "^[^@\\s]+@sha256:[a-f0-9]{64}$"}},
|
|
"preview": {"type": "object", "additionalProperties": false, "properties": {"domain": {"type": "string"}, "gatewayImage": {"type": "string"}, "serviceCASecret": {"type": "string"}, "tlsSecret": {"type": "string"}}},
|
|
"idleSeconds": {"type": "integer", "minimum": 0}
|
|
}
|
|
}
|