Skip to content

Commit eae8740

Browse files
[bitnami/tomcat] Set usePasswordFiles=true by default (#32767)
* [bitnami/tomcat] 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 5166f77 commit eae8740

File tree

5 files changed

+30
-3
lines changed

5 files changed

+30
-3
lines changed

bitnami/tomcat/CHANGELOG.md

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

3-
## 11.6.1 (2025-03-27)
3+
## 11.7.0 (2025-04-02)
44

5-
* [bitnami/tomcat] Release 11.6.1 ([#32629](https://github.com/bitnami/charts/pull/32629))
5+
* [bitnami/tomcat] Set `usePasswordFiles=true` by default ([#32767](https://github.com/bitnami/charts/pull/32767))
6+
7+
## <small>11.6.1 (2025-03-27)</small>
8+
9+
* [bitnami/*] Add tanzuCategory annotation (#32409) ([a8fba5c](https://github.com/bitnami/charts/commit/a8fba5cb01f6f4464ca7f69c50b0fbe97d837a95)), closes [#32409](https://github.com/bitnami/charts/issues/32409)
10+
* [bitnami/tomcat] Release 11.6.1 (#32629) ([da54156](https://github.com/bitnami/charts/commit/da541565254f8a73b4bf1eb62746235e70dbed12)), closes [#32629](https://github.com/bitnami/charts/issues/32629)
611

712
## 11.6.0 (2025-03-12)
813

bitnami/tomcat/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ maintainers:
3636
name: tomcat
3737
sources:
3838
- https://github.com/bitnami/charts/tree/main/bitnami/tomcat
39-
version: 11.6.1
39+
version: 11.7.0

bitnami/tomcat/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ You can enable this init container by setting `volumePermissions.enabled` to `tr
195195
| `commonAnnotations` | Add annotations to all the deployed resources | `{}` |
196196
| `clusterDomain` | Kubernetes Cluster Domain | `cluster.local` |
197197
| `extraDeploy` | Array of extra objects to deploy with the release | `[]` |
198+
| `usePasswordFiles` | Mount credentials as files instead of using environment variables | `true` |
198199

199200
### Tomcat parameters
200201

bitnami/tomcat/templates/_pod.tpl

+18
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ containers:
7777
env:
7878
- name: BITNAMI_DEBUG
7979
value: {{ ternary "true" "false" .Values.image.debug | quote }}
80+
{{- if .Values.usePasswordFiles }}
81+
- name: TOMCAT_USERNAME_FILE
82+
value: {{ printf "/opt/bitnami/tomcat/secrets/%s" (include "tomcat.adminUsernameKey" .) }}
83+
- name: TOMCAT_PASSWORD_FILE
84+
value: {{ printf "/opt/bitnami/tomcat/secrets/%s" (include "tomcat.adminPasswordKey" .) }}
85+
{{- else }}
8086
- name: TOMCAT_USERNAME
8187
valueFrom:
8288
secretKeyRef:
@@ -87,6 +93,7 @@ containers:
8793
secretKeyRef:
8894
name: {{ include "tomcat.secretName" . }}
8995
key: {{ include "tomcat.adminPasswordKey" . }}
96+
{{- end }}
9097
- name: TOMCAT_ALLOW_REMOTE_MANAGEMENT
9198
value: {{ .Values.tomcatAllowRemoteManagement | quote }}
9299
- name: TOMCAT_HTTP_PORT_NUMBER
@@ -167,6 +174,10 @@ containers:
167174
- name: empty-dir
168175
mountPath: /tmp
169176
subPath: tmp-dir
177+
{{- if .Values.usePasswordFiles }}
178+
- name: tomcat-secrets
179+
mountPath: /opt/bitnami/tomcat/secrets
180+
{{- end }}
170181
{{- if .Values.extraVolumeMounts }}
171182
{{- include "common.tplvalues.render" (dict "value" .Values.extraVolumeMounts "context" $) | nindent 6 }}
172183
{{- end }}
@@ -209,6 +220,13 @@ containers:
209220
volumes:
210221
- name: empty-dir
211222
emptyDir: {}
223+
{{- if .Values.usePasswordFiles }}
224+
- name: tomcat-secrets
225+
projected:
226+
sources:
227+
- secret:
228+
name: {{ include "tomcat.secretName" . }}
229+
{{- end }}
212230
{{- if (eq .Values.deployment.type "deployment") }}
213231
{{- if and .Values.persistence.enabled }}
214232
- name: data

bitnami/tomcat/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ clusterDomain: cluster.local
5959
## @param extraDeploy Array of extra objects to deploy with the release
6060
##
6161
extraDeploy: []
62+
## @param usePasswordFiles Mount credentials as files instead of using environment variables
63+
##
64+
usePasswordFiles: true
6265
## @section Tomcat parameters
6366
##
6467

0 commit comments

Comments
 (0)