Skip to content

Commit 6fd4eda

Browse files
committed
restore changes
1 parent aba04c4 commit 6fd4eda

File tree

3 files changed

+11
-34
lines changed

3 files changed

+11
-34
lines changed

charts/docker-mailserver/templates/deployment.yaml

Lines changed: 11 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -83,18 +83,6 @@ spec:
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 }}

charts/docker-mailserver/tests/__snapshot__/deployment_test.yaml.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,6 @@ manifest should match snapshot:
152152
name: submissions
153153
- containerPort: 587
154154
name: submission
155-
- containerPort: 12525
156-
name: smtp-proxy
157155
- containerPort: 10465
158156
name: subs-proxy
159157
- containerPort: 10587

charts/docker-mailserver/tests/__snapshot__/secret_test.yaml.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,6 @@ manifest should match snapshot:
152152
name: submissions
153153
- containerPort: 587
154154
name: submission
155-
- containerPort: 12525
156-
name: smtp-proxy
157155
- containerPort: 10465
158156
name: subs-proxy
159157
- containerPort: 10587

0 commit comments

Comments
 (0)