@@ -57,10 +57,10 @@ spec:
5757 {{- end }}
5858
5959 # Secrets
60- {{- range $name, $secret := .Values.secrets }}
61- - name : {{ regexReplaceAll "[.]" $ name "-" }}
60+ {{- range .Values.secrets }}
61+ - name : {{ regexReplaceAll "[.]" . name "-" }}
6262 secret :
63- secretName : {{ regexReplaceAll "[.]" $ name "-" }}
63+ secretName : {{ regexReplaceAll "[.]" . name "-" }}
6464 {{- end }}
6565
6666 # Certificate
8383 {{- end }}
8484 {{- end }}
8585
86- # Extra volumes
87- {{- with .Values.deployment.extraVolumes }}
88- {{- toYaml . | nindent 8 }}
89- {{- end }}
90-
91- {{- if .Values.deployment.initContainers }}
92- initContainers :
93- {{- with .Values.deployment.initContainers }}
94- {{- toYaml . | nindent 8 }}
95- {{- end }}
96- {{- end }}
97-
9886 containers :
9987 - name : docker-mailserver
10088 image : {{ .Values.image.name }}:{{ default .Chart.AppVersion .Values.image.tag }}
@@ -144,13 +132,13 @@ spec:
144132 {{- end }}
145133
146134 # Config via Secrets
147- {{- range $name, $secret := .Values.secrets }}
148- - name : {{ regexReplaceAll "[.]" $ name "-" }}
149- subPath : {{ $secret .key | default $ name }}
150- {{- if isAbs $secret .path }}
151- mountPath : {{ $secret .path }}
135+ {{- range .Values.secrets }}
136+ - name : {{ regexReplaceAll "[.]" . name "-" }}
137+ subPath : {{ .key | default . name }}
138+ {{- if isAbs .path }}
139+ mountPath : {{ $.path }}
152140 {{- else }}
153- mountPath : /tmp/docker-mailserver/{{ $secret .path }}
141+ mountPath : /tmp/docker-mailserver/{{ .path }}
154142 {{- end }}
155143 {{- end }}
156144
@@ -162,11 +150,6 @@ spec:
162150 {{- end }}
163151 {{- end }}
164152
165- # Mount Extra Volumes
166- {{- with $.Values.deployment.extraVolumeMounts }}
167- {{- toYaml . | nindent 12 }}
168- {{- end }}
169-
170153 livenessProbe :
171154 exec :
172155 command :
@@ -194,8 +177,6 @@ spec:
194177 - name : submission
195178 containerPort : 587
196179 {{- if .Values.proxyProtocol.enabled }}
197- - name : smtp-proxy
198- containerPort : 12525
199180 - name : subs-proxy
200181 containerPort : 10465
201182 - name : sub-proxy
@@ -263,7 +244,7 @@ spec:
263244 {{- if $persistence.enabled }}
264245 - name : {{ $name }}
265246 mountPath : {{ $persistence.mountPath }}
266- readonly : true
247+ readOnly : true
267248 {{- end }}
268249 {{- end }}
269- {{- end }}
250+ {{- end }}
0 commit comments