the existing infrastructure
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
}
|
||||
@@ -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" }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 }
|
||||
}
|
||||
}
|
||||
@@ -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)$" }
|
||||
}
|
||||
}
|
||||
@@ -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"] }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user