Skip to content

Commit 0d5592a

Browse files
committed
revert unrelated changes
1 parent 366ff4e commit 0d5592a

File tree

2 files changed

+19
-21
lines changed

2 files changed

+19
-21
lines changed

charts/docker-mailserver/templates/deployment.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ spec:
5757
{{- end }}
5858

5959
# Secrets
60-
{{- range .Values.secrets }}
61-
- name: {{ regexReplaceAll "[.]" .name "-" }}
60+
{{- range $name, $secret := .Values.secrets }}
61+
- name: {{ regexReplaceAll "[.]" $name "-" }}
6262
secret:
63-
secretName: {{ regexReplaceAll "[.]" .name "-" }}
63+
secretName: {{ regexReplaceAll "[.]" $name "-" }}
6464
{{- end }}
6565

6666
# Certificate
@@ -144,13 +144,13 @@ spec:
144144
{{- end }}
145145

146146
# Config via Secrets
147-
{{- range .Values.secrets }}
148-
- name: {{ regexReplaceAll "[.]" .name "-" }}
149-
subPath: {{ .key | default .name }}
150-
{{- if isAbs .path }}
151-
mountPath: {{ $.path }}
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 }}
152152
{{- else }}
153-
mountPath: /tmp/docker-mailserver/{{ .path }}
153+
mountPath: /tmp/docker-mailserver/{{ $secret.path }}
154154
{{- end }}
155155
{{- end }}
156156

charts/docker-mailserver/values.yaml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ deployment:
7676
# --- General Section ---------------------------
7777
# -----------------------------------------------
7878
LOG_LEVEL: info
79-
SUPERVISOR_LOGLEVEL:
80-
DMS_VMAIL_UID:
79+
SUPERVISOR_LOGLEVEL:
80+
DMS_VMAIL_UID:
8181
DMS_VMAIL_GID:
8282
ACCOUNT_PROVISIONER:
8383
POSTMASTER_ADDRESS:
@@ -611,17 +611,15 @@ configMaps:
611611
## such as DKIM signing keys.
612612
##
613613
## secrets:
614-
## rspamd.example.com:
615-
## name: rspamd.example.com # This is the name of the Secret
616-
## create: true # If true, create a new Secret
617-
## path: rspamd.dkim.rsa-2048-mail-example.com.private.txt
618-
## data: abace # If create is true, then you must specify content. Must be base 64 encoded!
614+
## - name: rspamd.example.com # This is the name of the Secret
615+
## create: true # If true, create a new Secret
616+
## path: rspamd.dkim.rsa-2048-mail-example.com.private.txt
617+
## data: abace # If create is true, then you must specify content. Must be base 64 encoded!
619618
##
620-
## rspamd.dkim.rsa-2048-mail-example.com.public:
621-
## name: rspamd.dkim.rsa-2048-mail-example.com.public
622-
## create: true
623-
## path: rspamd/dkim/rsa-2048-mail-example.com.public
624-
## data: abace # If create is true, then you must specify content. Must be base 64 encoded!
619+
## - name: rspamd.dkim.rsa-2048-mail-example.com.public
620+
## create: true
621+
## path: rspamd/dkim/rsa-2048-mail-example.com.public
622+
## data: abace # If create is true, then you must specify content. Must be base 64 encoded!
625623
##
626624
## If you set the create key to false, then you must manually create the ConfigMaps before deploying the chart.
627625
##

0 commit comments

Comments
 (0)