File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -5,5 +5,5 @@ metadata:
5
5
labels :
6
6
{{- include "exivity.labels" $ | indent 4 }}
7
7
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 }}"
Original file line number Diff line number Diff line change @@ -5,5 +5,11 @@ metadata:
5
5
labels :
6
6
{{- include "exivity.labels" $ | indent 4 }}
7
7
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 }}
8
13
EXIVITY_MAIL_USERNAME : {{ .Values.smtp.mail.username | required ".Values.smtp.mail.username is required" | b64enc }}
9
14
EXIVITY_MAIL_PASSWORD : {{ .Values.smtp.mail.password | required ".Values.smtp.mail.password is required" | b64enc }}
15
+ {{- end }}
Original file line number Diff line number Diff line change 91
91
password : " Exivity123!" # SMTP password
92
92
93
93
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
96
96
97
97
# Configuration for PostgreSQL, either as an embedded database using the Bitnami PostgreSQL chart or an external database.
98
98
# It is recommended to use an external PostgreSQL server for production environments to ensure scalability and manageability.
You can’t perform that action at this time.
0 commit comments