mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
[helm] add possibility to use array for imagePullSecrets (#4782)
add possibility to use array for imagePullSecrets
This commit is contained in:
parent
733db2bc88
commit
5251b4d50e
|
@ -183,3 +183,18 @@ Inject extra environment vars in the format key:value, if populated
|
||||||
{{- printf "false" -}}
|
{{- printf "false" -}}
|
||||||
{{- end -}}
|
{{- 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 -}}
|
||||||
|
|
|
@ -42,10 +42,7 @@ spec:
|
||||||
tolerations:
|
tolerations:
|
||||||
{{ tpl .Values.filer.tolerations . | nindent 8 | trim }}
|
{{ tpl .Values.filer.tolerations . | nindent 8 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.global.imagePullSecrets }}
|
{{- include "seaweedfs.imagePullSecrets" . | nindent 6 }}
|
||||||
imagePullSecrets:
|
|
||||||
- name: {{ .Values.global.imagePullSecrets }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.global.createClusterRole }}
|
{{- if .Values.global.createClusterRole }}
|
||||||
serviceAccountName: seaweedfs-rw-sa #hack for delete pod master after migration
|
serviceAccountName: seaweedfs-rw-sa #hack for delete pod master after migration
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -42,10 +42,7 @@ spec:
|
||||||
tolerations:
|
tolerations:
|
||||||
{{ tpl .Values.master.tolerations . | nindent 8 | trim }}
|
{{ tpl .Values.master.tolerations . | nindent 8 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.global.imagePullSecrets }}
|
{{- include "seaweedfs.imagePullSecrets" . | nindent 6 }}
|
||||||
imagePullSecrets:
|
|
||||||
- name: {{ .Values.global.imagePullSecrets }}
|
|
||||||
{{- end }}
|
|
||||||
terminationGracePeriodSeconds: 60
|
terminationGracePeriodSeconds: 60
|
||||||
{{- if .Values.master.priorityClassName }}
|
{{- if .Values.master.priorityClassName }}
|
||||||
priorityClassName: {{ .Values.master.priorityClassName | quote }}
|
priorityClassName: {{ .Values.master.priorityClassName | quote }}
|
||||||
|
|
|
@ -30,10 +30,7 @@ spec:
|
||||||
tolerations:
|
tolerations:
|
||||||
{{ tpl .Values.s3.tolerations . | nindent 8 | trim }}
|
{{ tpl .Values.s3.tolerations . | nindent 8 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.global.imagePullSecrets }}
|
{{- include "seaweedfs.imagePullSecrets" . | nindent 6 }}
|
||||||
imagePullSecrets:
|
|
||||||
- name: {{ .Values.global.imagePullSecrets }}
|
|
||||||
{{- end }}
|
|
||||||
terminationGracePeriodSeconds: 10
|
terminationGracePeriodSeconds: 10
|
||||||
{{- if .Values.s3.priorityClassName }}
|
{{- if .Values.s3.priorityClassName }}
|
||||||
priorityClassName: {{ .Values.s3.priorityClassName | quote }}
|
priorityClassName: {{ .Values.s3.priorityClassName | quote }}
|
||||||
|
|
|
@ -36,10 +36,7 @@ spec:
|
||||||
tolerations:
|
tolerations:
|
||||||
{{ tpl .Values.volume.tolerations . | nindent 8 | trim }}
|
{{ tpl .Values.volume.tolerations . | nindent 8 | trim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.global.imagePullSecrets }}
|
{{- include "seaweedfs.imagePullSecrets" . | nindent 6 }}
|
||||||
imagePullSecrets:
|
|
||||||
- name: {{ .Values.global.imagePullSecrets }}
|
|
||||||
{{- end }}
|
|
||||||
terminationGracePeriodSeconds: 150
|
terminationGracePeriodSeconds: 150
|
||||||
{{- if .Values.volume.priorityClassName }}
|
{{- if .Values.volume.priorityClassName }}
|
||||||
priorityClassName: {{ .Values.volume.priorityClassName | quote }}
|
priorityClassName: {{ .Values.volume.priorityClassName | quote }}
|
||||||
|
|
Loading…
Reference in a new issue