Skip to content

Commit ad441dc

Browse files
committed
chore: update smtp configuration and enhance deployment references
1 parent cb50e59 commit ad441dc

File tree

5 files changed

+33
-55
lines changed

5 files changed

+33
-55
lines changed

charts/exivity/templates/proximity/cli.deployment.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ spec:
2020
checksum/{{- include "exivity.fullname" $ -}}-config-proximity-cli: {{ include (print $.Template.BasePath "/proximity/cli.configmap.yaml") . | sha256sum }}
2121
checksum/{{- include "exivity.fullname" $ -}}-proximity-cli-env: {{ include (print $.Template.BasePath "/proximity/cli.env.yaml") . | sha256sum }}
2222
checksum/{{- include "exivity.fullname" $ -}}-secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
23-
checksum/{{- include "exivity.fullname" $ -}}-config-logfiles: {{ include (print $.Template.BasePath "/proximity/logfiles.configmap.yaml") . | sha256sum }}
2423
spec:
2524
securityContext:
2625
{{- include "exivity.securityContext" (dict "root" . "component" "proximityCli") | indent 8 }}
@@ -72,8 +71,6 @@ spec:
7271
envFrom:
7372
- configMapRef:
7473
name: {{ include "exivity.fullname" $ -}}-proximity-cli-env
75-
- configMapRef:
76-
name: {{ include "exivity.fullname" $ -}}-config-logfiles
7774
- secretRef:
7875
name: {{ include "exivity.fullname" $ -}}-app-key
7976
- secretRef:

charts/exivity/templates/proximity/logfiles.configmap.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,32 @@
1+
{{- if .Values.communications.smtp }}
12
apiVersion: v1
23
kind: ConfigMap
34
metadata:
45
name: {{ include "exivity.fullname" $ }}-config-smtp
56
labels:
67
{{- include "exivity.labels" $ | indent 4 }}
78
data:
8-
{{- if .Values.communications.smtp.driver }}
9-
EXIVITY_MAIL_DRIVER: {{ .Values.communications.smtp.driver | quote }}
9+
{{- with .Values.communications.smtp }}
10+
{{- if .driver }}
11+
EXIVITY_MAIL_DRIVER: {{ .driver | quote }}
1012
{{- end }}
11-
{{- if .Values.communications.smtp.host }}
12-
EXIVITY_MAIL_HOST: {{ .Values.communications.smtp.host | quote }}
13+
{{- if .host }}
14+
EXIVITY_MAIL_HOST: {{ .host | quote }}
1315
{{- end }}
14-
{{- if .Values.communications.smtp.port }}
15-
EXIVITY_MAIL_PORT: {{ .Values.communications.smtp.port | quote }}
16+
{{- if .port }}
17+
EXIVITY_MAIL_PORT: {{ .port | quote }}
1618
{{- end }}
17-
{{- if .Values.communications.smtp.fromAddress }}
18-
EXIVITY_MAIL_FROM_ADDRESS: {{ .Values.communications.smtp.fromAddress | quote }}
19+
{{- if .fromAddress }}
20+
EXIVITY_MAIL_FROM_ADDRESS: {{ .fromAddress | quote }}
1921
{{- end }}
20-
{{- if .Values.communications.smtp.fromName }}
21-
EXIVITY_MAIL_FROM_NAME: {{ .Values.communications.smtp.fromName | quote }}
22+
{{- if .fromName }}
23+
EXIVITY_MAIL_FROM_NAME: {{ .fromName | quote }}
2224
{{- end }}
23-
{{- if .Values.communications.smtp.encryption }}
24-
EXIVITY_MAIL_ENCRYPTION: {{ .Values.communications.smtp.encryption | quote }}
25+
{{- if .encryption }}
26+
EXIVITY_MAIL_ENCRYPTION: {{ .encryption | quote }}
2527
{{- end }}
26-
{{- if .Values.communications.smtp.smtpVerifyPeer }}
27-
EXIVITY_MAIL_SMTP_VERIFY_PEER: {{ .Values.communications.smtp.smtpVerifyPeer | quote }}
28+
{{- if .smtpVerifyPeer }}
29+
EXIVITY_MAIL_SMTP_VERIFY_PEER: {{ .smtpVerifyPeer | quote }}
2830
{{- end }}
31+
{{- end }}
32+
{{- end }}
Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
1+
{{- if .Values.communications.smtp }}
2+
{{- with .Values.communications.smtp.auth }}
3+
{{- if or .username .password }}
14
apiVersion: v1
2-
kind: Secret
5+
kind: Secret
36
metadata:
4-
name: {{ include "exivity.fullname" $ -}}-smtp-secret
7+
name: {{ include "exivity.fullname" $ }}-smtp-secret
58
labels:
69
{{- include "exivity.labels" $ | indent 4 }}
10+
type: Opaque
711
data:
8-
{{- with .Values.communications.smtp.auth.username }}
9-
EXIVITY_MAIL_USERNAME: {{ . | b64enc }}
10-
{{- end }}
11-
{{- with .Values.communications.smtp.auth.password }}
12-
EXIVITY_MAIL_PASSWORD: {{ . | b64enc }}
13-
{{- end }}
12+
{{- if .username }}
13+
EXIVITY_MAIL_USERNAME: {{ .username | b64enc }}
14+
{{- end }}
15+
{{- if .password }}
16+
EXIVITY_MAIL_PASSWORD: {{ .password | b64enc }}
17+
{{- end }}
18+
{{- end }}
19+
{{- end }}
20+
{{- end }}

charts/exivity/values.schema.json

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"secret",
1111
"ingress",
1212
"storage",
13-
"logfiles",
1413
"postgresql",
1514
"rabbitmq",
1615
"service",
@@ -238,26 +237,10 @@
238237
"additionalProperties": false
239238
}
240239
},
241-
"required": [
242-
"host",
243-
"port",
244-
"encryption",
245-
"fromAddress",
246-
"fromName",
247-
"auth"
248-
],
249240
"additionalProperties": false
250241
}
251242
}
252243
},
253-
"logfiles": {
254-
"type": "object",
255-
"properties": {
256-
"deleteDays": { "type": "integer" },
257-
"compressDays": { "type": "integer" }
258-
},
259-
"required": ["deleteDays", "compressDays"]
260-
},
261244
"postgresql": {
262245
"type": "object",
263246
"default": {},
@@ -3122,10 +3105,6 @@
31223105
"password": ""
31233106
}
31243107
},
3125-
"logfiles": {
3126-
"deleteDays": 0,
3127-
"compressDays": 0
3128-
},
31293108
"postgresql": {
31303109
"enabled": true,
31313110
"global": {

0 commit comments

Comments
 (0)