Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
f0924ad
chore: add proximity options
xiangyisss May 19, 2025
50d15ba
chore: add smtp and logfiles cofigurations
xiangyisss May 21, 2025
89d6829
chore: merge main
xiangyisss May 21, 2025
547e56e
chore: update smtp values and create smtp folder
xiangyisss May 21, 2025
1088eaf
chore: update logfiles keys in configmap and adjust smtp secret
xiangyisss May 22, 2025
5fdbf84
chore: set default value for smtp
xiangyisss May 28, 2025
7396d29
chore: enhance SMTP configuration by adding missing fields and updati…
linuxluigi May 28, 2025
b75f01b
chore: refactor SMTP configuration to use communications structure an…
linuxluigi May 28, 2025
10fc414
Merge origin into local
xiangyisss May 28, 2025
56cd1eb
chore: remove log files option
xiangyisss May 28, 2025
66cbbed
chore: fix helm lint
xiangyisss May 28, 2025
cf8066a
chore: remove logfiles from values.yaml
xiangyisss May 28, 2025
dbee07a
chore: update SMTP configuration to conditionally include settings in…
xiangyisss May 30, 2025
feac806
chore: update release-notes action to use specific authentication branch
linuxluigi Jun 2, 2025
3d21bb3
chore: update release-notes action to use main branch for authentication
linuxluigi Jun 2, 2025
a10cb7a
chore: update release-notes action to use specific authentication branch
linuxluigi Jun 2, 2025
5a18a39
chore: update release-notes action to use main branch for authentication
linuxluigi Jun 2, 2025
f8744dd
Merge remote-tracking branch 'origin/main' into EXVT-5953
xiangyisss Jun 4, 2025
2705a38
Merge remote-tracking branch 'origin/EXVT-5953' into EXVT-5953
xiangyisss Jun 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions charts/exivity/templates/pigeon/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ spec:
{{- include "exivity.labels" $ | indent 8 }}
annotations:
checksum/{{- include "exivity.fullname" $ -}}-config-pigeon: {{ include (print $.Template.BasePath "/pigeon/configmap.yaml") . | sha256sum }}
checksum/{{- include "exivity.fullname" $ -}}-config-smtp: {{ include (print $.Template.BasePath "/smtp/smtp-configmap.yaml") . | sha256sum }}
checksum/{{- include "exivity.fullname" $ -}}-smtp-secret: {{ include (print $.Template.BasePath "/smtp/smtp-secret.yaml") . | sha256sum }}
spec:
securityContext:
{{- include "exivity.securityContext" (dict "root" . "component" "pigeon") | indent 8 }}
Expand Down Expand Up @@ -59,6 +61,12 @@ spec:
envFrom:
- secretRef:
name: {{ include "exivity.fullname" $ -}}-app-key
{{- if and .Values.communications .Values.communications.smtp }}
- secretRef:
name: {{ include "exivity.fullname" $ -}}-smtp-secret
- configMapRef:
name: {{ include "exivity.fullname" $ -}}-config-smtp
{{- end }}
env:
- name: REDIS_HOST
value: exivity-redis-master
Expand Down
10 changes: 9 additions & 1 deletion charts/exivity/templates/proximity/api.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ spec:
checksum/{{- include "exivity.fullname" $ -}}-lock: {{ include (print $.Template.BasePath "/proximity/api.configmap.yaml") . | sha256sum }}
checksum/{{- include "exivity.fullname" $ -}}-proximity-api-env: {{ include (print $.Template.BasePath "/proximity/api.env.yaml") . | sha256sum }}
checksum/{{- include "exivity.fullname" $ -}}-secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
checksum/{{- include "exivity.fullname" $ -}}-config-smtp: {{ include (print $.Template.BasePath "/smtp/smtp-configmap.yaml") . | sha256sum }}
checksum/{{- include "exivity.fullname" $ -}}-smtp-secret: {{ include (print $.Template.BasePath "/smtp/smtp-secret.yaml") . | sha256sum }}
spec:
securityContext:
{{- include "exivity.securityContext" (dict "root" . "component" "proximityApi") | indent 8 }}
Expand Down Expand Up @@ -132,6 +134,12 @@ spec:
name: {{ include "exivity.fullname" $ -}}-jwt-secret
- configMapRef:
name: {{ include "exivity.fullname" $ -}}-proximity-api-env
{{- if and .Values.communications .Values.communications.smtp }}
- secretRef:
name: {{ include "exivity.fullname" $ -}}-smtp-secret
- configMapRef:
name: {{ include "exivity.fullname" . }}-config-smtp
{{- end }}
{{- include "exivity.probes" $ | indent 10}}
{{- with .Values.service.pullSecrets }}
imagePullSecrets:
Expand All @@ -147,4 +155,4 @@ spec:
{{ range $key, $val := . }}
{{ $key }}: {{ $val }}
{{- end }}
{{- end }}
{{- end }}
30 changes: 30 additions & 0 deletions charts/exivity/templates/smtp/smtp-configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "exivity.fullname" $ }}-config-smtp
labels:
{{- include "exivity.labels" $ | indent 4 }}
data:
{{- if and .Values.communications .Values.communications.smtp }}
{{- if .Values.communications.smtp.driver }}
EXIVITY_MAIL_DRIVER: {{ .Values.communications.smtp.driver | quote }}
{{- end }}
{{- if .Values.communications.smtp.host }}
EXIVITY_MAIL_HOST: {{ .Values.communications.smtp.host | quote }}
{{- end }}
{{- if .Values.communications.smtp.port }}
EXIVITY_MAIL_PORT: {{ .Values.communications.smtp.port | quote }}
{{- end }}
{{- if .Values.communications.smtp.fromAddress }}
EXIVITY_MAIL_FROM_ADDRESS: {{ .Values.communications.smtp.fromAddress | quote }}
{{- end }}
{{- if .Values.communications.smtp.fromName }}
EXIVITY_MAIL_FROM_NAME: {{ .Values.communications.smtp.fromName | quote }}
{{- end }}
{{- if .Values.communications.smtp.encryption }}
EXIVITY_MAIL_ENCRYPTION: {{ .Values.communications.smtp.encryption | quote }}
{{- end }}
{{- if .Values.communications.smtp.smtpVerifyPeer }}
EXIVITY_MAIL_SMTP_VERIFY_PEER: {{ .Values.communications.smtp.smtpVerifyPeer | quote }}
{{- end }}
{{- end }}
12 changes: 12 additions & 0 deletions charts/exivity/templates/smtp/smtp-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{- if and .Values.communications.smtp .Values.communications.smtp.auth .Values.communications.smtp.auth.username .Values.communications.smtp.auth.password }}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "exivity.fullname" $ }}-smtp-secret
labels:
{{- include "exivity.labels" $ | indent 4 }}
type: Opaque
data:
EXIVITY_MAIL_USERNAME: {{ .Values.communications.smtp.auth.username | b64enc }}
EXIVITY_MAIL_PASSWORD: {{ .Values.communications.smtp.auth.password | b64enc }}
{{- end }}
81 changes: 81 additions & 0 deletions charts/exivity/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,73 @@
}
]
},
"communications": {
"type": "object",
"properties": {
"smtp": {
"type": "object",
"properties": {
"driver": {
"type": "string",
"description": "Mail driver to use, e.g. smtp"
},
"host": {
"type": "string",
"format": "hostname",
"description": "SMTP server hostname"
},
"port": {
"type": "integer",
"minimum": 1,
"maximum": 65535,
"description": "SMTP server port"
},
"encryption": {
"type": "string",
"enum": ["none", "ssl", "tls"],
"description": "One of: none | ssl | tls"
},
"verifyPeer": {
"type": "boolean",
"description": "Verify certificate trust chain and hostname"
},
"fromAddress": {
"type": "string",
"format": "email",
"description": "Sender email address"
},
"fromName": {
"type": "string",
"description": "Sender name"
},
"auth": {
"type": "object",
"properties": {
"username": {
"type": "string",
"description": "SMTP username"
},
"password": {
"type": "string",
"description": "SMTP password"
}
},
"required": ["username"],
"additionalProperties": false
}
},
"required": [
"host",
"port",
"encryption",
"fromAddress",
"fromName",
"auth"
],
"additionalProperties": false
}
}
},
"postgresql": {
"type": "object",
"default": {},
Expand Down Expand Up @@ -2775,6 +2842,7 @@
}
]
},

"logLevel": {
"type": "object",
"default": {},
Expand Down Expand Up @@ -3032,6 +3100,19 @@
"helmResourcePolicyKeep": true,
"sharedVolumeAccessMode": "ReadWriteMany"
},
"smtp": {
"mail": {
"driver": "",
"host": "",
"port": "",
"encryption": "",
"smtpVerifyPeer": false,
"fromAddress": "",
"fromName": "",
"username": "",
"password": ""
}
},
"postgresql": {
"enabled": true,
"global": {
Expand Down
16 changes: 16 additions & 0 deletions charts/exivity/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,22 @@ storage:
import: 1Gi
report: 1Gi

communications:
{}
# SMTP settings
# smtp:
# driver: smtp # mail "driver" (e.g. smtp)
# host: smtp.example.com # SMTP server hostname
# port: 465 # SMTP server port
# encryption: tls # one of: none | ssl | tls
# verifyPeer: true # verify certificate trust chain and hostname
# fromAddress: [email protected]
# fromName: Exivity
# auth:
# username: info@your-domain
# password: SuperSecure


# Configuration for PostgreSQL, either as an embedded database using the Bitnami PostgreSQL chart or an external database.
# It is recommended to use an external PostgreSQL server for production environments to ensure scalability and manageability.
# The embedded PostgreSQL chart is primarily intended for testing and non-production purposes.
Expand Down
Loading