Skip to content

Commit c9033c6

Browse files
[bitnami/schema-registry] Set usePasswordFiles=true by default (#32713)
* [bitnami/schema-registry] 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 d1ea259 commit c9033c6

File tree

5 files changed

+26
-2
lines changed

5 files changed

+26
-2
lines changed

bitnami/schema-registry/CHANGELOG.md

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

3+
## 25.1.0 (2025-04-01)
4+
5+
* [bitnami/schema-registry] Set `usePasswordFiles=true` by default ([#32713](https://github.com/bitnami/charts/pull/32713))
6+
37
## 25.0.0 (2025-03-26)
48

5-
* [bitnami/schema-registry] feat: bump major due to major bump on Kafka dep ([#32618](https://github.com/bitnami/charts/pull/32618))
9+
* [bitnami/schema-registry] feat: bump major due to major bump on Kafka dep (#32618) ([d1bd546](https://github.com/bitnami/charts/commit/d1bd54623e3b6c26ae2358a5295e106b396e3702)), closes [#32618](https://github.com/bitnami/charts/issues/32618)
610

711
## 24.0.0 (2025-03-12)
812

bitnami/schema-registry/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ maintainers:
3535
name: schema-registry
3636
sources:
3737
- https://github.com/bitnami/charts/tree/main/bitnami/schema-registry
38-
version: 25.0.0
38+
version: 25.1.0

bitnami/schema-registry/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ For annotations, please see [this document](https://github.com/kubernetes/ingres
226226
| `commonAnnotations` | Annotations to add to all deployed objects | `{}` |
227227
| `clusterDomain` | Kubernetes cluster domain name | `cluster.local` |
228228
| `extraDeploy` | Array of extra objects to deploy with the release | `[]` |
229+
| `usePasswordFiles` | Mount credentials as files instead of using environment variables | `true` |
229230
| `diagnosticMode.enabled` | Enable diagnostic mode (all probes will be disabled and the command will be overridden) | `false` |
230231
| `diagnosticMode.command` | Command to override all containers in the deployment | `["sleep"]` |
231232
| `diagnosticMode.args` | Args to override all containers in the deployment | `["infinity"]` |

bitnami/schema-registry/templates/statefulset.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,17 @@ spec:
176176
{{- else }}
177177
value: {{ .Values.externalKafka.sasl.user | quote }}
178178
{{- end }}
179+
{{- if .Values.userPasswordFiles }}
180+
- name: SCHEMA_REGISTRY_KAFKA_SASL_PASSWORDS
181+
value: "/opt/bitnami/schema-registry/secrets/client-passwords"
182+
{{- else }}
179183
- name: SCHEMA_REGISTRY_KAFKA_SASL_PASSWORDS
180184
valueFrom:
181185
secretKeyRef:
182186
name: {{ include "schema-registry.secretName" . }}
183187
key: client-passwords
184188
{{- end }}
189+
{{- end }}
185190
{{- if contains "SSL" $kafkaProtocol }}
186191
- name: SCHEMA_REGISTRY_SSL_ENDPOINT_IDENTIFICATION_ALGORITHM
187192
value: {{ .Values.auth.kafka.tlsEndpointIdentificationAlgorithm | quote }}
@@ -255,6 +260,10 @@ spec:
255260
- name: empty-dir
256261
mountPath: /opt/bitnami/schema-registry/logs
257262
subPath: app-logs-dir
263+
{{- if and .Values.usePasswordFiles (contains "SASL" $kafkaProtocol) }}
264+
- name: schema-registry-secrets
265+
mountPath: /opt/bitnami/schema-registry/secrets
266+
{{- end }}
258267
{{- if or .Values.configuration .Values.existingConfigmap }}
259268
- name: configuration
260269
mountPath: /bitnami/schema-registry/etc/schema-registry/schema-registry.properties
@@ -279,6 +288,13 @@ spec:
279288
volumes:
280289
- name: empty-dir
281290
emptyDir: {}
291+
{{- if and .Values.usePasswordFiles (contains "SASL" $kafkaProtocol) }}
292+
- name: schema-registry-secrets
293+
projected:
294+
sources:
295+
- secret:
296+
name: {{ include "schema-registry.secretName" . }}
297+
{{- end }}
282298
{{- if or .Values.configuration .Values.existingConfigmap }}
283299
- name: configuration
284300
configMap:

bitnami/schema-registry/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)