Browse Source
Helm: Support map format for image pull secrets (#6546)
Support map format for image pull secrets
pull/6551/head
Gregor Tudan
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
8 additions and
5 deletions
-
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 }} |
|
|
|