hí ộ
This commit is contained in:
123
templates/schemas/minio-service.v1.json
Normal file
123
templates/schemas/minio-service.v1.json
Normal file
@@ -0,0 +1,123 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://platform.example/templates/minio-service/v1",
|
||||
"title": "minio-service@v1",
|
||||
"description": "Distributed MinIO object storage (legacy support level); objects are built by the cluster gateway",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"templateRef": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"name": {
|
||||
"const": "minio-service"
|
||||
},
|
||||
"version": {
|
||||
"const": "v1"
|
||||
}
|
||||
},
|
||||
"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": {
|
||||
"bucket": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z][a-z0-9-]{1,61}[a-z0-9]$"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"bucket"
|
||||
]
|
||||
},
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"backup": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"profile": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z][a-z0-9-]{0,62}$"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"profile"
|
||||
]
|
||||
},
|
||||
"restoreFrom": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"instanceId": {
|
||||
"type": "string",
|
||||
"pattern": "^ds-[a-f0-9]{32}$"
|
||||
},
|
||||
"backupId": {
|
||||
"type": "string",
|
||||
"pattern": "^op-[a-f0-9]{32}$"
|
||||
},
|
||||
"targetTime": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"instanceId",
|
||||
"backupId"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"templateRef",
|
||||
"engineVersion",
|
||||
"image",
|
||||
"parameters",
|
||||
"resources",
|
||||
"storage",
|
||||
"backup"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user