mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-09 05:25:14 +09:00
Add the storageclass dynamic-dropdown x-cozystack-options annotation to the storageClass field of the data apps (openbao, clickhouse, mariadb, redis, harbor, opensearch, rabbitmq, mongodb, postgres, nats, kafka, qdrant, foundationdb, http-cache) at the values.yaml source, so the extension is emitted by cozyvalues-gen instead of hand-edited into values.schema.json. kafka carries two (Kafka and ZooKeeper structs); foundationdb is nested under the Storage struct. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Andrei Kvapil <andrei.kvapil@aenix.io>
113 lines
3.0 KiB
YAML
113 lines
3.0 KiB
YAML
##
|
|
## @section Common parameters
|
|
##
|
|
|
|
## @typedef {struct} Resources - Explicit CPU and memory configuration for each NATS 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 replicas.
|
|
replicas: 2
|
|
|
|
## @param {Resources} [resources] - Explicit CPU and memory configuration for each NATS 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 {string} storageClass - StorageClass used to store the data.
|
|
## @immutable
|
|
## @x-cozystack-options {source: storageclass}
|
|
storageClass: ""
|
|
|
|
## @param {bool} external - Enable external access from outside the cluster.
|
|
external: false
|
|
|
|
## @typedef {struct} TLS - TLS configuration for NATS.
|
|
## @field {*bool} enabled - Enable TLS. When omitted, TLS is enabled automatically when `external` is true.
|
|
|
|
## @param {TLS} [tls] - TLS configuration. When omitted, TLS follows the `external` flag.
|
|
tls: {}
|
|
|
|
##
|
|
## @section Application-specific parameters
|
|
##
|
|
|
|
## @typedef {struct} User - User configuration.
|
|
## @field {string} [password] - Password for the user.
|
|
|
|
## @param {map[string]User} users - Users configuration map.
|
|
users: {}
|
|
## Example:
|
|
## users:
|
|
## user1:
|
|
## password: strongpassword
|
|
## user2: {}
|
|
|
|
## @typedef {struct} Jetstream - Jetstream configuration.
|
|
## @field {bool} enabled=true - Enable or disable Jetstream for persistent messaging in NATS.
|
|
## @field {quantity} size - Jetstream persistent storage size.
|
|
|
|
## @param {Jetstream} jetstream - Jetstream configuration.
|
|
jetstream:
|
|
enabled: true
|
|
size: 10Gi
|
|
|
|
## @typedef {struct} Config - NATS configuration.
|
|
## @field {*object} [merge] - Additional configuration to merge into NATS config.
|
|
## @field {*object} [resolver] - Additional resolver configuration to merge into NATS config.
|
|
|
|
## @param {Config} config - NATS configuration.
|
|
config:
|
|
merge: {}
|
|
resolver: {}
|