Skip to content

Commit c293376

Browse files
committed
chore: update logfiles keys in configmap and adjust smtp secret
1 parent 547e56e commit c293376

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ metadata:
55
labels:
66
{{- include "exivity.labels" $ | indent 4 }}
77
data:
8-
EXIVITY_LOGFILES_DELETE_DAYS: "{{ .Values.logfiles.deleteDays }}"
9-
EXIVITY_LOGFILES_COMPRESS_DAYS: "{{ .Values.logfiles.compressDays }}"
8+
LOGFILES_DELETE_DAYS: "{{ .Values.logfiles.deleteDays }}"
9+
LOGFILES_COMPRESS_DAYS: "{{ .Values.logfiles.compressDays }}"

charts/exivity/templates/smtp/smtp-secret.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,11 @@ metadata:
55
labels:
66
{{- include "exivity.labels" $ | indent 4 }}
77
data:
8+
{{- $existingSecret := lookup "v1" "Secret" $.Release.Namespace (printf "%s-smtp-secret" (include "exivity.fullname" $)) }}
9+
{{- if and $.Release.IsUpgrade $existingSecret }}
10+
EXIVITY_MAIL_USERNAME: {{ index $existingSecret.data "EXIVITY_MAIL_USERNAME" }}
11+
EXIVITY_MAIL_PASSWORD: {{ index $existingSecret.data "EXIVITY_MAIL_PASSWORD" }}
12+
{{- else }}
813
EXIVITY_MAIL_USERNAME: {{ .Values.smtp.mail.username | required ".Values.smtp.mail.username is required" | b64enc }}
914
EXIVITY_MAIL_PASSWORD: {{ .Values.smtp.mail.password | required ".Values.smtp.mail.password is required" | b64enc }}
15+
{{- end }}

charts/exivity/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ smtp:
9191
password: "Exivity123!" # SMTP password
9292

9393
logfiles:
94-
deleteDays: 365 # EXIVITY_LOGFILES_DELETE_DAYS: Delete logfiles after N days
95-
compressDays: 30 # EXIVITY_LOGFILES_COMPRESS_DAYS: Compress logfiles after N days
94+
deleteDays: 365 # EXIVITY_LOGFILES_DELETE_DAYS: Delete logfiles after N days
95+
compressDays: 30 # EXIVITY_LOGFILES_COMPRESS_DAYS: Compress logfiles after N days
9696

9797
# Configuration for PostgreSQL, either as an embedded database using the Bitnami PostgreSQL chart or an external database.
9898
# It is recommended to use an external PostgreSQL server for production environments to ensure scalability and manageability.

0 commit comments

Comments
 (0)