Skip to content

Commit 64a068d

Browse files
authored
fix: type of db ExtraEnvVars values (#466)
1 parent 051c3b2 commit 64a068d

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

charts/mailu/templates/_database.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@
125125

126126
{{/* Return the database name for Roundcube */}}
127127
{{- define "mailu.database.roundcube.name" -}}
128-
{{- .Values.global.database.roundcube.database | quote }}
128+
{{- .Values.global.database.roundcube.database }}
129129
{{- end -}}
130130

131131
{{/* Return the database username for Roundcube */}}
132132
{{- define "mailu.database.roundcube.username" -}}
133-
{{- .Values.global.database.roundcube.username | quote }}
133+
{{- .Values.global.database.roundcube.username }}
134134
{{- end -}}
135135

136136
{{/* Return the database password for Roundcube */}}

charts/mailu/templates/envvars-configmap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ data:
211211

212212
{{- if not (eq (include "mailu.database.type" .) "sqlite") }}
213213
{{- if .Values.webmail.enabled }}
214-
ROUNDCUBE_DB_USER: {{ include "mailu.database.roundcube.username" . }}
215-
ROUNDCUBE_DB_NAME: {{ include "mailu.database.roundcube.name" . }}
214+
ROUNDCUBE_DB_USER: {{ include "mailu.database.roundcube.username" . | quote }}
215+
ROUNDCUBE_DB_NAME: {{ include "mailu.database.roundcube.name" . | quote }}
216216
ROUNDCUBE_DB_HOST: {{ printf "%s:%s" (include "mailu.database.host" .) (include "mailu.database.port" .) | quote}}
217217
{{- end }}
218218
{{- end }}

charts/mailu/values.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -387,16 +387,16 @@ mariadb:
387387

388388
## @skip mariadb.primary.extraEnvVars
389389
## Array with extra environment variables, used to create the initial Roundcube database; DO NOT EDIT; see `global.database` instead
390-
extraEnvVars: |
390+
extraEnvVars:
391391
- name: ROUNDCUBE_DB_PW
392392
valueFrom:
393393
secretKeyRef:
394-
name: {{ include "mailu.database.roundcube.secretName" . }}
395-
key: {{ include "mailu.database.roundcube.secretKey" . }}
394+
name: '{{ include "mailu.database.roundcube.secretName" . }}'
395+
key: '{{ include "mailu.database.roundcube.secretKey" . }}'
396396
- name: ROUNDCUBE_DB_NAME
397-
value: {{ include "mailu.database.roundcube.name" . }}
397+
value: '{{ include "mailu.database.roundcube.name" . }}'
398398
- name: ROUNDCUBE_DB_USER
399-
value: {{ include "mailu.database.roundcube.username" . }}
399+
value: '{{ include "mailu.database.roundcube.username" . }}'
400400

401401
## @skip mariadb.initdbScripts.create_roundcube_database.sh
402402
## DO NOT EDIT Script to create the Roundcube database
@@ -482,16 +482,16 @@ postgresql:
482482
primary:
483483
## @skip postgresql.primary.extraEnvVars
484484
## Array with extra environment variables, used to create the initial Roundcube database; DO NOT EDIT; see `global.database` instead
485-
extraEnvVars: |
485+
extraEnvVars:
486486
- name: ROUNDCUBE_DB_PW
487487
valueFrom:
488488
secretKeyRef:
489-
name: {{ include "mailu.database.roundcube.secretName" . }}
490-
key: {{ include "mailu.database.roundcube.secretKey" . }}
489+
name: '{{ include "mailu.database.roundcube.secretName" . }}'
490+
key: '{{ include "mailu.database.roundcube.secretKey" . }}'
491491
- name: ROUNDCUBE_DB_NAME
492-
value: {{ include "mailu.database.roundcube.name" . }}
492+
value: '{{ include "mailu.database.roundcube.name" . }}'
493493
- name: ROUNDCUBE_DB_USER
494-
value: {{ include "mailu.database.roundcube.username" . }}
494+
value: '{{ include "mailu.database.roundcube.username" . }}'
495495

496496
initdb:
497497
## @skip postgresql.primary.initdb.scripts.create_roundcube_database.sh

0 commit comments

Comments
 (0)