the existing infrastructure

This commit is contained in:
Platform team
2026-11-02 09:55:40 +00:00
commit aef641e978
55 changed files with 618 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Application",
"type": "object",
"required": ["repoURL", "path", "namespace"],
"additionalProperties": false,
"properties": {
"name": { "type": "string", "title": "Name", "readOnly": true },
"owner": { "type": "string", "title": "Owner" },
"repoURL": { "type": "string", "title": "Repository", "description": "The Git repository of the application's manifests.", "pattern": "^https://" },
"path": { "type": "string", "title": "Path", "description": "The directory of the manifests in that repository.", "minLength": 1 },
"revision": { "type": "string", "title": "Revision", "description": "A branch, a tag or a commit; HEAD when empty." },
"namespace": { "type": "string", "title": "Namespace", "description": "The namespace it deploys to.", "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" },
"autoSync": { "type": "boolean", "title": "Sync automatically", "default": true }
}
}
+19
View File
@@ -0,0 +1,19 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Configuration",
"type": "object",
"required": ["data"],
"additionalProperties": false,
"properties": {
"name": { "type": "string", "title": "Name", "readOnly": true },
"namespace": { "type": "string", "title": "Namespace", "readOnly": true },
"owner": { "type": "string", "title": "Owner" },
"data": {
"type": "object",
"title": "Settings",
"minProperties": 1,
"propertyNames": { "pattern": "^[A-Za-z0-9._-]+$" },
"additionalProperties": { "type": "string" }
}
}
}
+15
View File
@@ -0,0 +1,15 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "PostgreSQL database",
"type": "object",
"required": ["version", "storageGB"],
"additionalProperties": false,
"properties": {
"name": { "type": "string", "title": "Name", "readOnly": true },
"namespace": { "type": "string", "title": "Namespace", "readOnly": true },
"owner": { "type": "string", "title": "Owner" },
"version": { "type": "string", "title": "PostgreSQL version", "enum": ["16", "17"] },
"storageGB": { "type": "integer", "title": "Storage (GB)", "minimum": 20, "maximum": 1024 },
"highAvailability": { "type": "boolean", "title": "High availability", "default": false }
}
}
+14
View File
@@ -0,0 +1,14 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Team namespace",
"type": "object",
"required": ["team"],
"additionalProperties": false,
"properties": {
"name": { "type": "string", "title": "Name", "readOnly": true },
"owner": { "type": "string", "title": "Owner" },
"team": { "type": "string", "title": "Team", "pattern": "^[a-z][a-z0-9-]*$" },
"cpu": { "type": "string", "title": "CPU requests", "description": "The namespace's quota of CPU requests, such as 8 or 500m.", "pattern": "^[0-9]+m?$" },
"memory": { "type": "string", "title": "Memory requests", "description": "The namespace's quota of memory requests, such as 16Gi.", "pattern": "^[0-9]+(Mi|Gi)$" }
}
}
+14
View File
@@ -0,0 +1,14 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Flux sync",
"type": "object",
"required": ["path", "targetNamespace"],
"additionalProperties": false,
"properties": {
"name": { "type": "string", "title": "Name", "readOnly": true },
"owner": { "type": "string", "title": "Owner" },
"path": { "type": "string", "title": "Path", "description": "The directory of the platform repository that Flux applies.", "pattern": "^\\./" },
"targetNamespace": { "type": "string", "title": "Namespace", "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" },
"interval": { "type": "string", "title": "Interval", "enum": ["1m", "10m", "1h"] }
}
}