Files
Andrei KvapilandClaude 2e61810547 refactor: replace Helm lookup with valuesFrom mechanism
Replace Helm lookup functions with FluxCD valuesFrom mechanism for
reading cluster and namespace configuration.

Changes:
- Create Secret cozystack-values in each namespace with values.yaml key
  containing _cluster and _namespace configuration as nested YAML
- Configure HelmReleases to read from this Secret via valuesFrom
  (valuesKey defaults to values.yaml, so it can be omitted)
- Update cozy-lib helpers to access config via .Values._cluster
- Add default values for required _cluster keys to ensure all fields exist
- Update Go code (cozystack-api and helm reconciler) to use new format

This eliminates the need for Helm lookup functions while maintaining
the same configuration interface for charts.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2026-01-05 16:10:55 +01:00
..
2025-12-01 19:14:15 +00:00
2024-08-12 14:47:11 +02:00
2024-08-12 14:33:48 +02:00
2025-09-24 12:32:37 +02:00

Managed NATS Service

Parameters

Common parameters

Name Description Type Value
host The hostname used to access SeaweedFS externally (defaults to 's3' subdomain for the tenant host). string ""
topology The topology of the SeaweedFS cluster. string Simple
replicationFactor Replication factor: number of replicas for each volume in the SeaweedFS cluster. int 2

SeaweedFS Components Configuration

Name Description Type Value
db Database configuration. object {}
db.replicas Number of database replicas. int 2
db.size Persistent Volume size. quantity 10Gi
db.storageClass StorageClass used to store the data. string ""
db.resources Explicit CPU and memory configuration. When omitted, the preset defined in resourcesPreset is applied. object {}
db.resources.cpu Number of CPU cores allocated. quantity ""
db.resources.memory Amount of memory allocated. quantity ""
db.resourcesPreset Default sizing preset used when resources is omitted. string small
master Master service configuration. object {}
master.replicas Number of master replicas. int 3
master.resources Explicit CPU and memory configuration. When omitted, the preset defined in resourcesPreset is applied. object {}
master.resources.cpu Number of CPU cores allocated. quantity ""
master.resources.memory Amount of memory allocated. quantity ""
master.resourcesPreset Default sizing preset used when resources is omitted. string small
filer Filer service configuration. object {}
filer.replicas Number of filer replicas. int 2
filer.resources Explicit CPU and memory configuration. When omitted, the preset defined in resourcesPreset is applied. object {}
filer.resources.cpu Number of CPU cores allocated. quantity ""
filer.resources.memory Amount of memory allocated. quantity ""
filer.resourcesPreset Default sizing preset used when resources is omitted. string small
filer.grpcHost The hostname used to expose or access the filer service externally. string ""
filer.grpcPort The port used to access the filer service externally. int 443
filer.whitelist A list of IP addresses or CIDR ranges that are allowed to access the filer service. []string []
volume Volume service configuration. object {}
volume.replicas Number of volume replicas. int 2
volume.size Persistent Volume size. quantity 10Gi
volume.storageClass StorageClass used to store the data. string ""
volume.resources Explicit CPU and memory configuration. When omitted, the preset defined in resourcesPreset is applied. object {}
volume.resources.cpu Number of CPU cores allocated. quantity ""
volume.resources.memory Amount of memory allocated. quantity ""
volume.resourcesPreset Default sizing preset used when resources is omitted. string small
volume.zones A map of zones for MultiZone topology. Each zone can have its own number of replicas and size. map[string]object {}
volume.zones[name].replicas Number of replicas in the zone. int 0
volume.zones[name].size Zone storage size. quantity ""
s3 S3 service configuration. object {}
s3.replicas Number of S3 replicas. int 2
s3.resources Explicit CPU and memory configuration. When omitted, the preset defined in resourcesPreset is applied. object {}
s3.resources.cpu Number of CPU cores allocated. quantity ""
s3.resources.memory Amount of memory allocated. quantity ""
s3.resourcesPreset Default sizing preset used when resources is omitted. string small