mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-06 23:23:23 +09:00
Application values reach chart templates as strings, maps and lists, and several templates rendered them as-is. Values are now quoted or converted to their type where they are rendered, map keys used as names or config keys are checked against what their target accepts, hook Jobs read their data from environment variables, and values handed to upstream charts are passed in the form those charts expect. cozy-lib gains cozy-lib.yaml.toYaml and cozy-lib.yaml.fromYaml, which fail the render on a value they cannot encode or decode instead of returning an empty result. external-dns GoDaddy credentials move from args to a Secret. Values that were valid before keep rendering: NATS units, restic short keep flags, MongoDB database names by MongoDB's own rule, uppercase and IPv6 VPN hosts, bootbox hostnames that are subdomains, netmask whitelists, bracketed IPv6 registries for the Talos installer, time zones and intervals in the MongoDB backup schedule. Co-authored-by: Timofei Larkin <lllamnyp@gmail.com> Assisted-by: LLM Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
357 lines
10 KiB
JSON
357 lines
10 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",
|
|
"maxLength": 317,
|
|
"pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?[A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?$"
|
|
},
|
|
"valueFrom": {
|
|
"description": "Fault domain value source.",
|
|
"type": "string",
|
|
"default": "spec.nodeName",
|
|
"maxLength": 317,
|
|
"pattern": "^[A-Za-z0-9_.$'\\[\\]/-]*$"
|
|
}
|
|
}
|
|
},
|
|
"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": "",
|
|
"maxLength": 253,
|
|
"pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)?$",
|
|
"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": "",
|
|
"maxLength": 63,
|
|
"pattern": "^([a-z0-9][a-z0-9.-]*[a-z0-9])?$"
|
|
},
|
|
"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": "",
|
|
"pattern": "^[^\\s\"'$`\\x5c;\u0026|\u003c\u003e(){}]*$"
|
|
},
|
|
"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
|
|
}
|
|
}
|
|
}
|