Skip to content

Commit

Permalink
[bitnami/redis]: only use auth.usePasswordFiles if auth.enabled is set (
Browse files Browse the repository at this point in the history
  • Loading branch information
j4ns8i authored Mar 3, 2025
1 parent 4b9681d commit 1d96748
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
6 changes: 5 additions & 1 deletion bitnami/redis/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Changelog

## 20.10.1 (2025-02-28)

* [bitnami/redis]: only use auth.usePasswordFiles if auth.enabled is set ([#32208](https://github.com/bitnami/charts/pull/32208))

## 20.10.0 (2025-02-27)

* [bitnami/redis] Set `usePasswordFiles=true` by default ([#32117](https://github.com/bitnami/charts/pull/32117))
* [bitnami/redis] Set `usePasswordFiles=true` by default (#32117) ([2f80b74](https://github.com/bitnami/charts/commit/2f80b749c9a2e692d51beb3e001708694b94c17f)), closes [#32117](https://github.com/bitnami/charts/issues/32117)

## 20.9.0 (2025-02-24)

Expand Down
2 changes: 1 addition & 1 deletion bitnami/redis/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ maintainers:
name: redis
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/redis
version: 20.10.0
version: 20.10.1
2 changes: 1 addition & 1 deletion bitnami/redis/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ For Redis Sentinel:
{{- end }}
{{- end }}

{{- if and .Values.auth.usePasswordFiles (not .Values.auth.usePasswordFileFromSecret) (or (empty .Values.master.initContainers) (empty .Values.replica.initContainers)) }}
{{- if and .Values.auth.enabled .Values.auth.usePasswordFiles (not .Values.auth.usePasswordFileFromSecret) (or (empty .Values.master.initContainers) (empty .Values.replica.initContainers)) }}

-------------------------------------------------------------------------------
WARNING
Expand Down
8 changes: 4 additions & 4 deletions bitnami/redis/templates/master/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ spec:
mountPath: /opt/bitnami/scripts/start-scripts
- name: health
mountPath: /health
{{- if .Values.auth.usePasswordFiles }}
{{- if and .Values.auth.enabled .Values.auth.usePasswordFiles }}
- name: redis-password
mountPath: /opt/bitnami/redis/secrets/
{{- end }}
Expand Down Expand Up @@ -288,7 +288,7 @@ spec:
- /bin/bash
- -c
- |
{{- if .Values.usePasswordFiles }}
{{- if and .Values.auth.enabled .Values.usePasswordFiles }}
export REDIS_PASSWORD="$(< $REDIS_PASSWORD_FILE)"
{{- end }}
redis_exporter{{- range $key, $value := .Values.metrics.extraArgs }} --{{ $key }}={{ $value }}{{- end }}
Expand Down Expand Up @@ -368,7 +368,7 @@ spec:
- name: empty-dir
mountPath: /tmp
subPath: app-tmp-dir
{{- if .Values.auth.usePasswordFiles }}
{{- if and .Values.auth.enabled .Values.auth.usePasswordFiles }}
- name: redis-password
mountPath: /secrets/
{{- end }}
Expand Down Expand Up @@ -463,7 +463,7 @@ spec:
configMap:
name: {{ printf "%s-health" (include "common.names.fullname" .) }}
defaultMode: 0755
{{- if .Values.auth.usePasswordFiles }}
{{- if and .Values.auth.enabled .Values.auth.usePasswordFiles }}
- name: redis-password
{{ if .Values.auth.usePasswordFileFromSecret }}
secret:
Expand Down

0 comments on commit 1d96748

Please sign in to comment.