Files
cozystack/packages/apps/valkey/values.yaml
T
Myasnikov DaniilandTimofei Larkin 4b8eaffa53 security(apps): quote and validate tenant values in chart templates
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>
2026-12-03 10:03:17 +00:00

97 lines
3.1 KiB
YAML

##
## @section Common parameters
##
## @typedef {struct} Resources - Explicit CPU and memory configuration for each Valkey replica.
## @field {quantity} [cpu] - CPU available to each replica.
## @field {quantity} [memory] - Memory (RAM) available to each replica.
## @enum {string} ResourcesPreset - Default sizing preset.
## @value t1.nano
## @value t1.micro
## @value t1.small
## @value t1.medium
## @value t1.large
## @value t1.xlarge
## @value t1.2xlarge
## @value t1.4xlarge
## @value c1.nano
## @value c1.micro
## @value c1.small
## @value c1.medium
## @value c1.large
## @value c1.xlarge
## @value c1.2xlarge
## @value c1.4xlarge
## @value s1.nano
## @value s1.micro
## @value s1.small
## @value s1.medium
## @value s1.large
## @value s1.xlarge
## @value s1.2xlarge
## @value s1.4xlarge
## @value u1.nano
## @value u1.micro
## @value u1.small
## @value u1.medium
## @value u1.large
## @value u1.xlarge
## @value u1.2xlarge
## @value u1.4xlarge
## @value m1.nano
## @value m1.micro
## @value m1.small
## @value m1.medium
## @value m1.large
## @value m1.xlarge
## @value m1.2xlarge
## @value m1.4xlarge
## @value nano
## @value micro
## @value small
## @value medium
## @value large
## @value xlarge
## @value 2xlarge
## @param {int} replicas - Number of Valkey replicas.
replicas: 2
## @param {Resources} [resources] - Explicit CPU and memory configuration for each Valkey replica. When omitted, the preset defined in `resourcesPreset` is applied.
resources: {}
## @param {ResourcesPreset} resourcesPreset="t1.nano" - Default sizing preset used when `resources` is omitted.
resourcesPreset: "t1.nano"
## @param {quantity} size - Persistent Volume Claim size available for application data.
size: 1Gi
## @param {string} storageClass - StorageClass used to store the data.
## @maxLength 253
## @pattern ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)?$
## @immutable
## @x-cozystack-options {source: storageclass}
storageClass: ""
## @param {bool} external - Enable external access from outside the cluster.
external: false
## @enum {string} Version
## @value v8
## @value v7
## @param {Version} version - Valkey major version to deploy
version: v8
##
## @section Application-specific parameters
##
## @param {bool} authEnabled - Require a password. The password of the `default` user is issued through the credentials API, and issuing a new one takes effect without restarting anything. Replication, the Sentinels and the metrics exporter use an internal account of their own; backups use the `default` password.
authEnabled: true
## @param {string} schedulingClass - 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.
## @maxLength 63
schedulingClass: ""