mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-07 06:56:37 +08:00
Fix #66: mount sockets into a temporary directory
This commit is contained in:
parent
5713ef4b37
commit
fb53f25c98
1 changed files with 3 additions and 17 deletions
|
@ -83,36 +83,22 @@ spec:
|
|||
{{- if .Values.extraVolumeMounts }}{{- toYaml .Values.extraVolumeMounts | nindent 12 }}{{ end }}
|
||||
resources: {{ toYaml .Values.resources | nindent 12 }}
|
||||
volumes:
|
||||
{{- if .Values.persistence.enabled }}
|
||||
# Socket directories
|
||||
- name: public
|
||||
emptyDir: {}
|
||||
- name: private
|
||||
emptyDir: {}
|
||||
{{- if .Values.persistence.existingClaim }}
|
||||
{{- if and .Values.persistence.enabled .Values.persistence.existingClaim }}
|
||||
- name: {{ $fullName }}
|
||||
persistentVolumeClaim:
|
||||
{{- with .Values.persistence.existingClaim }}
|
||||
claimName: {{ tpl . $ }}
|
||||
{{- end }}
|
||||
<<<<<<< HEAD
|
||||
{{- if .Values.extraVolumes }}{{- toYaml .Values.extraVolumes | nindent 8 }}{{ end }}
|
||||
{{- else }}
|
||||
volumes:
|
||||
{{- else if not .Values.persistence.enabled }}
|
||||
- name: {{ $fullName }}
|
||||
emptyDir: {}
|
||||
{{- end }}
|
||||
{{- if .Values.extraVolumes }}{{- toYaml .Values.extraVolumes | nindent 8 }}{{ end }}
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
volumes:
|
||||
- name: {{ $fullName }}
|
||||
emptyDir: {}
|
||||
{{- if .Values.extraVolumes }}{{- toYaml .Values.extraVolumes | nindent 8 }}{{ end }}
|
||||
=======
|
||||
{{ end }}
|
||||
{{ if .Values.extraVolumes -}}{{- toYaml .Values.extraVolumes | nindent 8 }}{{ end }}
|
||||
>>>>>>> 0b8ed0f (Fix #66: mount sockets into a temporary directory)
|
||||
{{- end }}
|
||||
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
|
|
Loading…
Add table
Reference in a new issue