From 400da5ee2be0575883ef1bf480b91d450c8bf0b8 Mon Sep 17 00:00:00 2001 From: Aleksei Sviridkin Date: Wed, 29 Apr 2026 13:59:21 +0300 Subject: [PATCH] fix(seaweedfs): pass filer.replicas and s3.replicas to HelmRelease The filer and s3 blocks in the seaweedfs HelmRelease values omitted the replicas: field, so user-supplied .Values.filer.replicas and .Values.s3.replicas were silently ignored and the upstream chart defaults took over. This also caused the WorkloadMonitor resources for filer and s3 (which read the same values) to diverge from the actual replica count and trigger spurious alerts when users set non-default values. Mirror the master/volume/db pattern and interpolate replicas: into both blocks. Assisted-By: Claude Signed-off-by: Aleksei Sviridkin --- packages/extra/seaweedfs/templates/seaweedfs.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/extra/seaweedfs/templates/seaweedfs.yaml b/packages/extra/seaweedfs/templates/seaweedfs.yaml index 2f5720ca..4f4c83b3 100644 --- a/packages/extra/seaweedfs/templates/seaweedfs.yaml +++ b/packages/extra/seaweedfs/templates/seaweedfs.yaml @@ -232,10 +232,12 @@ spec: {{- else if eq .Values.topology "MultiZone" }} defaultReplicaPlacement: "{{ sub .Values.replicationFactor 1 }}00" {{- end }} + replicas: {{ .Values.filer.replicas }} s3: domainName: {{ .Values.host | default (printf "s3.%s" $host) }} resources: {{- include "cozy-lib.resources.defaultingSanitize" (list .Values.filer.resourcesPreset .Values.filer.resources $) | nindent 10 }} s3: + replicas: {{ .Values.s3.replicas }} ingress: className: {{ $ingress }} host: {{ .Values.host | default (printf "s3.%s" $host) }}