[helm] add possibility to use array for imagePullSecrets (#4782)

add possibility to use array for imagePullSecrets
This commit is contained in:
tikhon-opsfleet
2023-08-23 14:01:41 +06:00
committed by GitHub
parent 733db2bc88
commit 5251b4d50e
5 changed files with 20 additions and 17 deletions

View File

@@ -182,4 +182,19 @@ Inject extra environment vars in the format key:value, if populated
{{- else -}}
{{- printf "false" -}}
{{- end -}}
{{- end -}}
{{- 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 -}}