Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

Helm: Support map format for image pull secrets (#6546)

Gregor Tudan903d288e086f
diff --git a/k8s/charts/seaweedfs/templates/_helpers.tpl b/k8s/charts/seaweedfs/templates/_helpers.tpl
index d8261eb32a..4f4b27157d 100644
--- a/k8s/charts/seaweedfs/templates/_helpers.tpl
+++ b/k8s/charts/seaweedfs/templates/_helpers.tpl
@@ -134,14 +134,17 @@ Inject extra environment vars in the format key:value, if populated
{{/* Return the proper imagePullSecrets */}}
{{- define "seaweedfs.imagePullSecrets" -}}
-{{- if .Values.global.imagePullSecrets }}
-{{- if kindIs "string" .Values.global.imagePullSecrets }}
+{{- with .Values.global.imagePullSecrets }}
imagePullSecrets:
- - name: {{ .Values.global.imagePullSecrets }}
+{{- if kindIs "string" . }}
+ - name: {{ . }}
{{- else }}
-imagePullSecrets:
-{{- range .Values.global.imagePullSecrets }}
+{{- range . }}
+ {{- if kindIs "string" . }}
- name: {{ . }}
+ {{- else }}
+ - {{ toYaml . }}
+ {{- end}}
{{- end }}
{{- end }}
{{- end }}