mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 12:16:03 +09:00
The lineage webhook keeps a pod on the tenant class when the application names a class the tenant does not allow, but it can only log that, on a pod the user never looks at. Refusing the application at admission puts the error where the field was set, with the list of classes that would be accepted. An update that keeps the class is not refused, so an application whose class was removed from the list after admission stays editable; the webhook already keeps its pods on the tenant class. Tenants are left out, because their spec.schedulingClass is the child tenant's class, which the tenant chart's inheritance governs. Users read the field description in the dashboard form and the API schema, so it names the tenant setting that decides which classes are accepted, says that only setting another value is refused, and that a pod gets its class when it is created, so running pods keep theirs. The field sits in its own README section, since a reader looking for placement would not look under the unrelated heading it was appended to. Assisted-by: LLM Signed-off-by: Mattia Eleuteri <mattia@hidora.io>
348 lines
9.8 KiB
JSON
348 lines
9.8 KiB
JSON
{
|
|
"title": "Chart Values",
|
|
"type": "object",
|
|
"properties": {
|
|
"version": {
|
|
"description": "FoundationDB major.minor version to deploy",
|
|
"type": "string",
|
|
"default": "v7.3",
|
|
"enum": [
|
|
"v7.4",
|
|
"v7.3"
|
|
]
|
|
},
|
|
"cluster": {
|
|
"description": "Cluster configuration.",
|
|
"type": "object",
|
|
"default": {},
|
|
"required": [
|
|
"faultDomain",
|
|
"processCounts",
|
|
"redundancyMode",
|
|
"storageEngine"
|
|
],
|
|
"properties": {
|
|
"faultDomain": {
|
|
"description": "Fault domain configuration.",
|
|
"type": "object",
|
|
"default": {},
|
|
"required": [
|
|
"key",
|
|
"valueFrom"
|
|
],
|
|
"properties": {
|
|
"key": {
|
|
"description": "Fault domain key.",
|
|
"type": "string",
|
|
"default": "kubernetes.io/hostname"
|
|
},
|
|
"valueFrom": {
|
|
"description": "Fault domain value source.",
|
|
"type": "string",
|
|
"default": "spec.nodeName"
|
|
}
|
|
}
|
|
},
|
|
"processCounts": {
|
|
"description": "Process counts for different roles.",
|
|
"type": "object",
|
|
"default": {},
|
|
"required": [
|
|
"cluster_controller",
|
|
"stateless",
|
|
"storage"
|
|
],
|
|
"properties": {
|
|
"cluster_controller": {
|
|
"description": "Number of cluster controller processes.",
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"stateless": {
|
|
"description": "Number of stateless processes (-1 for automatic).",
|
|
"type": "integer",
|
|
"default": -1
|
|
},
|
|
"storage": {
|
|
"description": "Number of storage processes (determines cluster size).",
|
|
"type": "integer",
|
|
"default": 3
|
|
}
|
|
}
|
|
},
|
|
"redundancyMode": {
|
|
"description": "Database redundancy mode (single, double, triple, three_datacenter, three_datacenter_fallback).",
|
|
"type": "string",
|
|
"default": "double"
|
|
},
|
|
"storageEngine": {
|
|
"description": "Storage engine (ssd-2, ssd-redwood-v1, ssd-rocksdb-v1, memory).",
|
|
"type": "string",
|
|
"default": "ssd-2"
|
|
}
|
|
}
|
|
},
|
|
"storage": {
|
|
"description": "Storage configuration.",
|
|
"type": "object",
|
|
"default": {},
|
|
"required": [
|
|
"size",
|
|
"storageClass"
|
|
],
|
|
"properties": {
|
|
"size": {
|
|
"description": "Size of persistent volumes for each instance.",
|
|
"default": "16Gi",
|
|
"pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"x-kubernetes-int-or-string": true
|
|
},
|
|
"storageClass": {
|
|
"description": "Storage class (if not set, uses cluster default).",
|
|
"type": "string",
|
|
"default": "",
|
|
"x-kubernetes-validations": [
|
|
{
|
|
"rule": "self == oldSelf",
|
|
"message": "storageClass is immutable"
|
|
}
|
|
],
|
|
"x-cozystack-options": {
|
|
"source": "storageclass"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"resources": {
|
|
"description": "Explicit CPU and memory configuration for each FoundationDB instance. When omitted, the preset defined in `resourcesPreset` is applied.",
|
|
"type": "object",
|
|
"default": {},
|
|
"properties": {
|
|
"cpu": {
|
|
"description": "CPU available to each instance.",
|
|
"pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"x-kubernetes-int-or-string": true
|
|
},
|
|
"memory": {
|
|
"description": "Memory (RAM) available to each instance.",
|
|
"pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
|
|
"anyOf": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"x-kubernetes-int-or-string": true
|
|
}
|
|
}
|
|
},
|
|
"resourcesPreset": {
|
|
"description": "Default sizing preset used when `resources` is omitted.",
|
|
"type": "string",
|
|
"default": "c1.small",
|
|
"enum": [
|
|
"t1.nano",
|
|
"t1.micro",
|
|
"t1.small",
|
|
"t1.medium",
|
|
"t1.large",
|
|
"t1.xlarge",
|
|
"t1.2xlarge",
|
|
"t1.4xlarge",
|
|
"c1.nano",
|
|
"c1.micro",
|
|
"c1.small",
|
|
"c1.medium",
|
|
"c1.large",
|
|
"c1.xlarge",
|
|
"c1.2xlarge",
|
|
"c1.4xlarge",
|
|
"s1.nano",
|
|
"s1.micro",
|
|
"s1.small",
|
|
"s1.medium",
|
|
"s1.large",
|
|
"s1.xlarge",
|
|
"s1.2xlarge",
|
|
"s1.4xlarge",
|
|
"u1.nano",
|
|
"u1.micro",
|
|
"u1.small",
|
|
"u1.medium",
|
|
"u1.large",
|
|
"u1.xlarge",
|
|
"u1.2xlarge",
|
|
"u1.4xlarge",
|
|
"m1.nano",
|
|
"m1.micro",
|
|
"m1.small",
|
|
"m1.medium",
|
|
"m1.large",
|
|
"m1.xlarge",
|
|
"m1.2xlarge",
|
|
"m1.4xlarge",
|
|
"nano",
|
|
"micro",
|
|
"small",
|
|
"medium",
|
|
"large",
|
|
"xlarge",
|
|
"2xlarge"
|
|
]
|
|
},
|
|
"backup": {
|
|
"description": "DEPRECATED Backup configuration (use the Cozystack backups framework: BackupClass + FoundationDB strategy).",
|
|
"type": "object",
|
|
"default": {},
|
|
"required": [
|
|
"enabled",
|
|
"retentionPolicy",
|
|
"s3"
|
|
],
|
|
"properties": {
|
|
"enabled": {
|
|
"description": "DEPRECATED Enable in-chart backups (superseded by BackupClass + FoundationDB strategy).",
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"retentionPolicy": {
|
|
"description": "DEPRECATED Retention policy for backups.",
|
|
"type": "string",
|
|
"default": "7d"
|
|
},
|
|
"s3": {
|
|
"description": "DEPRECATED S3 configuration for backups.",
|
|
"type": "object",
|
|
"default": {},
|
|
"required": [
|
|
"bucket",
|
|
"credentials",
|
|
"endpoint",
|
|
"region"
|
|
],
|
|
"properties": {
|
|
"bucket": {
|
|
"description": "DEPRECATED S3 bucket name.",
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"credentials": {
|
|
"description": "DEPRECATED S3 credentials.",
|
|
"type": "object",
|
|
"default": {},
|
|
"required": [
|
|
"accessKeyId",
|
|
"secretAccessKey"
|
|
],
|
|
"properties": {
|
|
"accessKeyId": {
|
|
"description": "DEPRECATED S3 access key ID.",
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"secretAccessKey": {
|
|
"description": "DEPRECATED S3 secret access key.",
|
|
"type": "string",
|
|
"default": ""
|
|
}
|
|
}
|
|
},
|
|
"endpoint": {
|
|
"description": "DEPRECATED S3 endpoint URL.",
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"region": {
|
|
"description": "DEPRECATED S3 region.",
|
|
"type": "string",
|
|
"default": "us-east-1"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"monitoring": {
|
|
"description": "Monitoring configuration.",
|
|
"type": "object",
|
|
"default": {},
|
|
"required": [
|
|
"enabled"
|
|
],
|
|
"properties": {
|
|
"enabled": {
|
|
"description": "Enable WorkloadMonitor integration.",
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
}
|
|
},
|
|
"customParameters": {
|
|
"description": "Custom parameters to pass to FoundationDB.",
|
|
"type": "array",
|
|
"default": [],
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"imageType": {
|
|
"description": "Container image deployment type.",
|
|
"type": "string",
|
|
"default": "split",
|
|
"enum": [
|
|
"unified",
|
|
"split"
|
|
]
|
|
},
|
|
"securityContext": {
|
|
"description": "Security context for containers.",
|
|
"type": "object",
|
|
"default": {},
|
|
"required": [
|
|
"runAsGroup",
|
|
"runAsUser"
|
|
],
|
|
"properties": {
|
|
"runAsGroup": {
|
|
"description": "Group ID to run the container.",
|
|
"type": "integer",
|
|
"default": 4059
|
|
},
|
|
"runAsUser": {
|
|
"description": "User ID to run the container.",
|
|
"type": "integer",
|
|
"default": 4059
|
|
}
|
|
}
|
|
},
|
|
"automaticReplacements": {
|
|
"description": "Enable automatic pod replacements.",
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"schedulingClass": {
|
|
"description": "Name of a SchedulingClass CR (cluster-scoped, group cozystack.io) used in place of the tenant's for this application's pods. A pod gets its class when it is created, so running pods keep theirs until they are recreated. Must be the tenant's own class or one listed in the tenant's `allowedSchedulingClasses`. Setting any other value is refused, and the pods of an application whose class is not, or no longer, in that list get the tenant's class. Empty means inherit from the tenant.",
|
|
"type": "string",
|
|
"default": "",
|
|
"maxLength": 63
|
|
}
|
|
}
|
|
}
|