Skip to content

Commit

Permalink
Fix bokysan#66: mount sockets into a temporary directory
Browse files Browse the repository at this point in the history
  • Loading branch information
bokysan committed May 29, 2021
1 parent 5713ef4 commit fb53f25
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions helm/mail/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
- name: {{ $fullName }}
emptyDir: {}
{{- if .Values.extraVolumes }}{{- toYaml .Values.extraVolumes | nindent 8 }}{{ end }}
{{- end }}
{{- else }}
volumes:
{{- else if not .Values.persistence.enabled }}
- name: {{ $fullName }}
emptyDir: {}
{{- end }}
{{- 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:
Expand Down

0 comments on commit fb53f25

Please sign in to comment.