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>
35 lines
2.6 KiB
YAML
35 lines
2.6 KiB
YAML
##
|
|
## @section Common parameters
|
|
##
|
|
|
|
## @param {string} [version] - etcd version (X.Y.Z) to run, set on the EtcdCluster's spec.version; the operator pulls etcd from its own configured image.
|
|
## @pattern ^([0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?)?$
|
|
version: "3.6.11"
|
|
|
|
## @param {quantity} [size] - Persistent Volume size.
|
|
size: 4Gi
|
|
|
|
## @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])?)*)?$
|
|
storageClass: ""
|
|
|
|
## @param {int} [replicas] - Number of etcd replicas.
|
|
replicas: 3
|
|
|
|
## @typedef {struct} Resources - Resource configuration for etcd.
|
|
## @field {quantity} [cpu] - Number of CPU cores allocated.
|
|
## @field {quantity} [memory] - Amount of memory allocated.
|
|
|
|
## @param {Resources} [resources] - Resource configuration for etcd.
|
|
resources:
|
|
cpu: 1000m
|
|
memory: 512Mi
|
|
|
|
## @param {object} [affinity] - Affinity rules set verbatim on the EtcdCluster's spec.affinity, replacing the chart default. When left empty the chart applies a soft (preferred) podAntiAffinity by kubernetes.io/hostname on top of the topologySpreadConstraints, which by default require an even spread of members over nodes (whenUnsatisfiable DoNotSchedule, maxSkew 1) unless the platform sets scheduling.globalAppTopologySpreadConstraints. The anti-affinity stays soft because a required rule forbids two members on one node even when every node already has one, so an etcd with more members than schedulable nodes could not start all of them. Set a requiredDuringSchedulingIgnoredDuringExecution rule here only on clusters with at least as many schedulable nodes as members. With node-local storage a recreated member Pod can only return to its own node, so a required rule keeps it Pending while that node holds another member, and the default spread does the same once some other node holds none. The operator copies affinity into each EtcdMember when it creates the member and builds every Pod of that member from that copy, so a change does not reschedule running members and takes effect only as members are replaced by new ones.
|
|
affinity: {}
|
|
|
|
## @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: ""
|