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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
[helm] add possibility to use array for imagePullSecrets (#4782)
tikhon-opsfleet5251b4d50ea5
diff --git a/k8s/charts/seaweedfs/templates/_helpers.tpl b/k8s/charts/seaweedfs/templates/_helpers.tplindex b8048abb6a..712657474a 100644--- a/k8s/charts/seaweedfs/templates/_helpers.tpl+++ b/k8s/charts/seaweedfs/templates/_helpers.tpl@@ -182,4 +182,19 @@ Inject extra environment vars in the format key:value, if populated{{- else -}}{{- printf "false" -}}{{- end -}}-{{- end -}}\ No newline at end of file+{{- end -}}++{{/* Return the proper imagePullSecrets */}}+{{- define "seaweedfs.imagePullSecrets" -}}+{{- if .Values.global.imagePullSecrets }}+{{- if kindIs "string" .Values.global.imagePullSecrets }}+imagePullSecrets:+ - name: {{ .Values.global.imagePullSecrets }}+{{- else }}+imagePullSecrets:+{{- range .Values.global.imagePullSecrets }}+ - name: {{ . }}+{{- end }}+{{- end }}+{{- end }}+{{- end -}}diff --git a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml b/k8s/charts/seaweedfs/templates/filer-statefulset.yamlindex b770025a13..7a2810a714 100644--- a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml+++ b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml@@ -42,10 +42,7 @@ spec:tolerations:{{ tpl .Values.filer.tolerations . | nindent 8 | trim }}{{- end }}- {{- if .Values.global.imagePullSecrets }}- imagePullSecrets:- - name: {{ .Values.global.imagePullSecrets }}- {{- end }}+ {{- include "seaweedfs.imagePullSecrets" . | nindent 6 }}{{- if .Values.global.createClusterRole }}serviceAccountName: seaweedfs-rw-sa #hack for delete pod master after migration{{- end }}diff --git a/k8s/charts/seaweedfs/templates/master-statefulset.yaml b/k8s/charts/seaweedfs/templates/master-statefulset.yamlindex 7a01eff855..e1b272ab40 100644--- a/k8s/charts/seaweedfs/templates/master-statefulset.yaml+++ b/k8s/charts/seaweedfs/templates/master-statefulset.yaml@@ -42,10 +42,7 @@ spec:tolerations:{{ tpl .Values.master.tolerations . | nindent 8 | trim }}{{- end }}- {{- if .Values.global.imagePullSecrets }}- imagePullSecrets:- - name: {{ .Values.global.imagePullSecrets }}- {{- end }}+ {{- include "seaweedfs.imagePullSecrets" . | nindent 6 }}terminationGracePeriodSeconds: 60{{- if .Values.master.priorityClassName }}priorityClassName: {{ .Values.master.priorityClassName | quote }}diff --git a/k8s/charts/seaweedfs/templates/s3-deployment.yaml b/k8s/charts/seaweedfs/templates/s3-deployment.yamlindex 8565b6c816..d0d56d0ef6 100644--- a/k8s/charts/seaweedfs/templates/s3-deployment.yaml+++ b/k8s/charts/seaweedfs/templates/s3-deployment.yaml@@ -30,10 +30,7 @@ spec:tolerations:{{ tpl .Values.s3.tolerations . | nindent 8 | trim }}{{- end }}- {{- if .Values.global.imagePullSecrets }}- imagePullSecrets:- - name: {{ .Values.global.imagePullSecrets }}- {{- end }}+ {{- include "seaweedfs.imagePullSecrets" . | nindent 6 }}terminationGracePeriodSeconds: 10{{- if .Values.s3.priorityClassName }}priorityClassName: {{ .Values.s3.priorityClassName | quote }}diff --git a/k8s/charts/seaweedfs/templates/volume-statefulset.yaml b/k8s/charts/seaweedfs/templates/volume-statefulset.yamlindex 4c4681618e..4abadb24d5 100644--- a/k8s/charts/seaweedfs/templates/volume-statefulset.yaml+++ b/k8s/charts/seaweedfs/templates/volume-statefulset.yaml@@ -36,10 +36,7 @@ spec:tolerations:{{ tpl .Values.volume.tolerations . | nindent 8 | trim }}{{- end }}- {{- if .Values.global.imagePullSecrets }}- imagePullSecrets:- - name: {{ .Values.global.imagePullSecrets }}- {{- end }}+ {{- include "seaweedfs.imagePullSecrets" . | nindent 6 }}terminationGracePeriodSeconds: 150{{- if .Values.volume.priorityClassName }}priorityClassName: {{ .Values.volume.priorityClassName | quote }}