Files
cozystack/packages/system/seaweedfs-db/values.schema.json
T
Myasnikov Daniil 7157158c93 fix(seaweedfs-db): make db resources configurable
values.yaml declared an unused Resources typedef while
templates/database.yaml hardcoded cpu/memory limits and requests. The
wrapper chart at packages/extra/seaweedfs/templates/seaweedfs-db.yaml
already passes db.resources through cozy-lib.resources.defaultingSanitize
into the sub-chart values, so the user-facing db.resources and
db.resourcesPreset on the outer chart silently dropped on the way in.

Drop the unused typedef, accept .Values.db.resources as a free-form
object (the wrapper already sanitizes it into the K8s nested
limits/requests shape that CNPG Cluster expects), and wire it through
to the Cluster manifest. Defaults are preserved verbatim so helm
template output is byte-identical for a no-override install.

Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-05-28 12:46:57 +05:00

53 lines
1.4 KiB
JSON

{
"title": "Chart Values",
"type": "object",
"properties": {
"db": {
"description": "Database configuration.",
"type": "object",
"default": {},
"properties": {
"replicas": {
"description": "Number of database replicas.",
"type": "integer",
"default": 2
},
"resources": {
"description": "Kubernetes resource requests and limits, passed verbatim to the CNPG Cluster.",
"type": "object",
"default": {
"limits": {
"cpu": "1",
"memory": "2048Mi"
},
"requests": {
"cpu": "100m",
"memory": "512Mi"
}
},
"x-kubernetes-preserve-unknown-fields": true
},
"size": {
"description": "Persistent Volume size.",
"default": "10Gi",
"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": "StorageClass used to store the data.",
"type": "string",
"default": ""
}
}
}
}
}