This commit is contained in:
2026-10-22 02:06:39 +00:00
commit 05c3339f1e
82 changed files with 3202 additions and 0 deletions

View File

@@ -0,0 +1,123 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://platform.example/templates/postgresql-service/v1",
"title": "postgresql-service@v1",
"description": "PostgreSQL cluster managed by CloudNativePG; objects are built by the cluster gateway",
"type": "object",
"additionalProperties": false,
"properties": {
"templateRef": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"const": "postgresql-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": {
"database": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,62}$"
}
},
"required": [
"database"
]
},
"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"
]
}