mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 22:57:56 +08:00
Helm: Support map format for image pull secrets (#6546)
Support map format for image pull secrets
This commit is contained in:
@@ -134,14 +134,17 @@ Inject extra environment vars in the format key:value, if populated
|
|||||||
|
|
||||||
{{/* Return the proper imagePullSecrets */}}
|
{{/* Return the proper imagePullSecrets */}}
|
||||||
{{- define "seaweedfs.imagePullSecrets" -}}
|
{{- define "seaweedfs.imagePullSecrets" -}}
|
||||||
{{- if .Values.global.imagePullSecrets }}
|
{{- with .Values.global.imagePullSecrets }}
|
||||||
{{- if kindIs "string" .Values.global.imagePullSecrets }}
|
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: {{ .Values.global.imagePullSecrets }}
|
{{- if kindIs "string" . }}
|
||||||
{{- else }}
|
|
||||||
imagePullSecrets:
|
|
||||||
{{- range .Values.global.imagePullSecrets }}
|
|
||||||
- name: {{ . }}
|
- name: {{ . }}
|
||||||
|
{{- else }}
|
||||||
|
{{- range . }}
|
||||||
|
{{- if kindIs "string" . }}
|
||||||
|
- name: {{ . }}
|
||||||
|
{{- else }}
|
||||||
|
- {{ toYaml . }}
|
||||||
|
{{- end}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
Reference in New Issue
Block a user