Skip to content

Commit aa11aae

Browse files
[bitnami/redmine] Set usePasswordFiles=true by default (#32771)
* [bitnami/redmine] Set `usePasswordFiles=true` by default Signed-off-by: Miguel Ruiz <[email protected]> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <[email protected]> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Bot <[email protected]> --------- Signed-off-by: Miguel Ruiz <[email protected]> Signed-off-by: Bitnami Bot <[email protected]> Co-authored-by: Bitnami Bot <[email protected]>
1 parent eae8740 commit aa11aae

File tree

7 files changed

+69
-5
lines changed

7 files changed

+69
-5
lines changed

bitnami/redmine/CHANGELOG.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Changelog
22

3-
## 32.1.6 (2025-03-11)
3+
## 32.2.0 (2025-04-02)
44

5-
* [bitnami/redmine] Release 32.1.6 ([#32389](https://github.com/bitnami/charts/pull/32389))
5+
* [bitnami/redmine] Set `usePasswordFiles=true` by default ([#32771](https://github.com/bitnami/charts/pull/32771))
6+
7+
## <small>32.1.6 (2025-03-11)</small>
8+
9+
* [bitnami/redmine] Release 32.1.6 (#32389) ([15830e2](https://github.com/bitnami/charts/commit/15830e283f3cdfe6000a1366b2b7e52a1e2a85ea)), closes [#32389](https://github.com/bitnami/charts/issues/32389)
610

711
## <small>32.1.5 (2025-02-28)</small>
812

bitnami/redmine/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ maintainers:
4444
name: redmine
4545
sources:
4646
- https://github.com/bitnami/charts/tree/main/bitnami/redmine
47-
version: 32.1.6
47+
version: 32.2.0

bitnami/redmine/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ helm install test --set persistence.existingClaim=PVC_REDMINE,mariadb.persistenc
268268
| `commonAnnotations` | Annotations to add to all deployed objects | `{}` |
269269
| `clusterDomain` | Default Kubernetes cluster domain | `cluster.local` |
270270
| `extraDeploy` | Array of extra objects to deploy with the release | `[]` |
271+
| `usePasswordFiles` | Mount credentials as files instead of using environment variables | `true` |
271272
| `diagnosticMode.enabled` | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | `false` |
272273
| `diagnosticMode.command` | Command to override all containers in the the deployment | `["sleep"]` |
273274
| `diagnosticMode.args` | Args to override all containers in the the deployment | `["infinity"]` |

bitnami/redmine/templates/cronjob.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,16 @@ spec:
9292
value: {{ template "redmine.database.name" . }}
9393
- name: REDMINE_MAIL_RECEIVER_DB_USERNAME
9494
value: {{ template "redmine.database.username" . }}
95+
{{- if .Values.usePasswordFiles }}
96+
- name: REDMINE_MAIL_RECEIVER_DB_PASSWORD_FILE
97+
value: {{ printf "/opt/bitnami/redmine/secrets/%s" (include "redmine.database.secretKey" .) }}
98+
{{- else }}
9599
- name: REDMINE_MAIL_RECEIVER_DB_PASSWORD
96100
valueFrom:
97101
secretKeyRef:
98102
name: {{ include "redmine.database.secretName" . }}
99103
key: {{ include "redmine.database.secretKey" . }}
104+
{{- end }}
100105
- name: REDMINE_MAIL_RECEIVER_DB_PORT
101106
value: {{ include "redmine.database.port" . | quote }}
102107
- name: REDMINE_MAIL_RECEIVER_HOST
@@ -105,11 +110,16 @@ spec:
105110
value: {{ .Values.mailReceiver.port | quote }}
106111
- name: REDMINE_MAIL_RECEIVER_USERNAME
107112
value: {{ .Values.mailReceiver.username | quote }}
113+
{{- if .Values.usePasswordFiles }}
114+
- name: REDMINE_MAIL_RECEIVER_PASSWORD_FILE
115+
value: "/opt/bitnami/redmine/secrets/mail-receiver-password"
116+
{{- else }}
108117
- name: REDMINE_MAIL_RECEIVER_PASSWORD
109118
valueFrom:
110119
secretKeyRef:
111120
name: {{ template "redmine.secretName" . }}
112121
key: mail-receiver-password
122+
{{- end }}
113123
- name: REDMINE_MAIL_RECEIVER_USE_SSL
114124
value: {{ .Values.mailReceiver.ssl | quote }}
115125
- name: REDMINE_MAIL_RECEIVER_STARTTLS
@@ -168,6 +178,10 @@ spec:
168178
volumeMounts:
169179
- name: mail-receiver
170180
mountPath: /cj
181+
{{- if .Values.usePasswordFiles }}
182+
- name: redmine-secrets
183+
mountPath: /opt/bitnami/redmine/secrets
184+
{{- end }}
171185
{{- if .Values.mailReceiver.extraVolumeMounts }}
172186
{{- include "common.tplvalues.render" (dict "value" .Values.mailReceiver.extraVolumeMounts "context" $) | nindent 16 }}
173187
{{- end }}
@@ -179,6 +193,15 @@ spec:
179193
configMap:
180194
name: {{ include "common.names.fullname" . }}
181195
defaultMode: 0744
196+
{{- if .Values.usePasswordFiles }}
197+
- name: redmine-secrets
198+
projected:
199+
sources:
200+
- secret:
201+
name: {{ include "redmine.secretName" . }}
202+
- secret:
203+
name: {{ include "redmine.database.secretName" . }}
204+
{{- end }}
182205
{{- if .Values.mailReceiver.extraVolumes }}
183206
{{- include "common.tplvalues.render" (dict "value" .Values.mailReceiver.extraVolumes "context" $) | nindent 12 }}
184207
{{- end }}

bitnami/redmine/templates/deployment.yaml

+30-2
Original file line numberDiff line numberDiff line change
@@ -124,20 +124,30 @@ spec:
124124
value: {{ include "redmine.database.name" . }}
125125
- name: REDMINE_DATABASE_USER
126126
value: {{ include "redmine.database.username" . }}
127+
{{- if .Values.usePasswordFiles }}
128+
- name: REDMINE_DATABASE_PASSWORD_FILE
129+
value: {{ printf "/opt/bitnami/redmine/secrets/%s" (include "redmine.database.secretKey" .) }}
130+
{{- else }}
127131
- name: REDMINE_DATABASE_PASSWORD
128132
valueFrom:
129133
secretKeyRef:
130134
name: {{ include "redmine.database.secretName" . }}
131135
key: {{ include "redmine.database.secretKey" . }}
136+
{{- end }}
132137
- name: REDMINE_DATABASE_PORT_NUMBER
133138
value: {{ include "redmine.database.port" . | quote }}
134139
- name: REDMINE_USERNAME
135140
value: {{ default "" .Values.redmineUsername | quote }}
141+
{{- if .Values.usePasswordFiles }}
142+
- name: REDMINE_PASSWORD_FILE
143+
value: "/opt/bitnami/redmine/secrets/redmine-password"
144+
{{- else }}
136145
- name: REDMINE_PASSWORD
137146
valueFrom:
138147
secretKeyRef:
139148
name: {{ include "redmine.secretName" . }}
140149
key: redmine-password
150+
{{- end }}
141151
- name: REDMINE_EMAIL
142152
value: {{ .Values.redmineEmail | quote }}
143153
- name: REDMINE_LANG
@@ -155,12 +165,17 @@ spec:
155165
value: {{ .Values.smtpUser | quote }}
156166
{{- end }}
157167
{{- if .Values.smtpPassword }}
168+
{{- if .Values.usePasswordFiles }}
169+
- name: REDMINE_SMTP_PASSWORD_FILE
170+
value: "/opt/bitnami/redmine/secrets/smtp-password"
171+
{{- else }}
158172
- name: REDMINE_SMTP_PASSWORD
159173
valueFrom:
160174
secretKeyRef:
161175
name: {{ template "redmine.secretName" . }}
162176
key: smtp-password
163177
{{- end }}
178+
{{- end }}
164179
{{- if .Values.smtpTls }}
165180
- name: REDMINE_SMTP_PROTOCOL
166181
value: "tls"
@@ -218,9 +233,13 @@ spec:
218233
{{- end }}
219234
volumeMounts:
220235
{{- include "certificates.volumeMount" . | indent 12 }}
236+
{{- if .Values.usePasswordFiles }}
237+
- name: redmine-secrets
238+
mountPath: /opt/bitnami/redmine/secrets
239+
{{- end }}
221240
{{- if .Values.customPostInitScripts }}
222-
- mountPath: /docker-entrypoint-init.d
223-
name: custom-postinit
241+
- name: custom-postinit
242+
mountPath: /docker-entrypoint-init.d
224243
{{- end }}
225244
{{- if .Values.extraVolumeMounts }}
226245
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumeMounts "context" $) | nindent 12 }}
@@ -232,6 +251,15 @@ spec:
232251
{{- end }}
233252
volumes:
234253
{{- include "certificates.volumes" . | indent 8 }}
254+
{{- if .Values.usePasswordFiles }}
255+
- name: redmine-secrets
256+
projected:
257+
sources:
258+
- secret:
259+
name: {{ include "redmine.secretName" . }}
260+
- secret:
261+
name: {{ include "redmine.database.secretName" . }}
262+
{{- end }}
235263
- name: redmine-data
236264
{{- if .Values.persistence.enabled }}
237265
persistentVolumeClaim:

bitnami/redmine/templates/mail-receiver-configmap.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ data:
1818
receive.sh: |
1919
#!/usr/bin/env bash
2020
21+
{{- if .Values.usePasswordFiles }}
22+
export REDMINE_MAIL_RECEIVER_DB_PASSWORD="$(< $REDMINE_MAIL_RECEIVER_DB_PASSWORD_FILE)"
23+
export REDMINE_MAIL_RECEIVER_PASSWORD="$(< $REDMINE_MAIL_RECEIVER_PASSWORD_FILE)"
24+
{{- end }}
25+
2126
if [ $REDMINE_MAIL_RECEIVER_DEBUG ]; then
2227
set -x
2328
fi

bitnami/redmine/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ clusterDomain: cluster.local
5757
## @param extraDeploy Array of extra objects to deploy with the release
5858
##
5959
extraDeploy: []
60+
## @param usePasswordFiles Mount credentials as files instead of using environment variables
61+
##
62+
usePasswordFiles: true
6063
## Enable diagnostic mode in the deployment
6164
##
6265
diagnosticMode:

0 commit comments

Comments
 (0)