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
parent
commit
903d288e08
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 13
      k8s/charts/seaweedfs/templates/_helpers.tpl

13
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 }}

Loading…
Cancel
Save