79 lines
1.7 KiB
JSON
79 lines
1.7 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://platform.example/templates/redis-service/v2",
|
|
"title": "redis-service@v2",
|
|
"description": "Standalone service with one engine container and one retained volume; no HA or operator required.",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"templateRef": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": {
|
|
"const": "redis-service"
|
|
},
|
|
"version": {
|
|
"const": "v2"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"version"
|
|
]
|
|
},
|
|
"engineVersion": {
|
|
"type": "string",
|
|
"minLength": 1,
|
|
"maxLength": 64
|
|
},
|
|
"image": {
|
|
"type": "string",
|
|
"pattern": "^[^\\s]+@sha256:[a-f0-9]{64}$"
|
|
},
|
|
"parameters": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {}
|
|
},
|
|
"resources": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"profile": {
|
|
"type": "string",
|
|
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
|
}
|
|
},
|
|
"required": [
|
|
"profile"
|
|
]
|
|
},
|
|
"storage": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"profile": {
|
|
"type": "string",
|
|
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
|
},
|
|
"size": {
|
|
"type": "string",
|
|
"pattern": "^[1-9][0-9]*(Mi|Gi|Ti)$"
|
|
}
|
|
},
|
|
"required": [
|
|
"profile",
|
|
"size"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"templateRef",
|
|
"engineVersion",
|
|
"image",
|
|
"resources",
|
|
"storage"
|
|
]
|
|
}
|