Skip to content

Commit

Permalink
[bitnami/redis] Disable all usages of usePasswordFiles if auth.enable…
Browse files Browse the repository at this point in the history
…d is unset (#32253)

* fix: disable all usages of auth.usePasswordFiles if auth.enabled is unset

Signed-off-by: Tobias Ollmann <[email protected]>

* chore: bump chart version

Signed-off-by: Tobias Ollmann <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <[email protected]>

* Fix metrics - statefulset.yaml

Signed-off-by: Miguel Ruiz <[email protected]>

Signed-off-by: Miguel Ruiz <[email protected]>

* Fix metrics - application.yaml

Signed-off-by: Miguel Ruiz <[email protected]>

Signed-off-by: Miguel Ruiz <[email protected]>

* Fix metrics application.yaml

Signed-off-by: Miguel Ruiz <[email protected]>

Signed-off-by: Miguel Ruiz <[email protected]>

---------

Signed-off-by: Tobias Ollmann <[email protected]>
Signed-off-by: Bitnami Containers <[email protected]>
Signed-off-by: Miguel Ruiz <[email protected]>
Co-authored-by: Bitnami Containers <[email protected]>
Co-authored-by: Miguel Ruiz <[email protected]>
  • Loading branch information
3 people authored Mar 4, 2025
1 parent dfc690e commit 1642f81
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 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.11.1 (2025-03-04)

* [bitnami/redis] Disable all usages of usePasswordFiles if auth.enabled is unset ([#32253](https://github.com/bitnami/charts/pull/32253))

## 20.11.0 (2025-03-03)

* [bitnami/redis] feat: Add external access service for redis sentinel ([#32190](https://github.com/bitnami/charts/pull/32190))
* [bitnami/redis] feat: Add external access service for redis sentinel (#32190) ([0582ac3](https://github.com/bitnami/charts/commit/0582ac395c8aa9ef5e9d9df7772775397dd674b1)), closes [#32190](https://github.com/bitnami/charts/issues/32190)

## <small>20.10.1 (2025-03-03)</small>

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.11.0
version: 20.11.1
2 changes: 1 addition & 1 deletion bitnami/redis/templates/master/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ spec:
- /bin/bash
- -c
- |
{{- if and .Values.auth.enabled .Values.usePasswordFiles }}
{{- if and .Values.auth.enabled .Values.auth.usePasswordFiles }}
export REDIS_PASSWORD="$(< $REDIS_PASSWORD_FILE)"
{{- end }}
redis_exporter{{- range $key, $value := .Values.metrics.extraArgs }} --{{ $key }}={{ $value }}{{- end }}
Expand Down
8 changes: 4 additions & 4 deletions bitnami/redis/templates/replicas/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,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 @@ -308,7 +308,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 @@ -388,7 +388,7 @@ spec:
- name: empty-dir
mountPath: /tmp
subPath: tmp-dir
{{- if .Values.auth.usePasswordFiles }}
{{- if and .Values.auth.enabled .Values.auth.usePasswordFiles }}
- name: redis-password
mountPath: /secrets/
{{- end }}
Expand Down Expand Up @@ -483,7 +483,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
10 changes: 5 additions & 5 deletions bitnami/redis/templates/sentinel/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ spec:
mountPath: /health
- name: sentinel-data
mountPath: /opt/bitnami/redis-sentinel/etc
{{- 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 @@ -507,7 +507,7 @@ spec:
{{- end }}
- name: sentinel-data
mountPath: /opt/bitnami/redis-sentinel/etc
{{- 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 @@ -542,7 +542,7 @@ spec:
- /bin/bash
- -c
- |
{{- if .Values.usePasswordFiles }}
{{- if and .Values.auth.enabled .Values.auth.usePasswordFiles }}
export REDIS_PASSWORD="$(< $REDIS_PASSWORD_FILE)"
{{- end }}
redis_exporter{{- range $key, $value := .Values.metrics.extraArgs }} --{{ $key }}={{ $value }}{{- end }}
Expand Down Expand Up @@ -622,7 +622,7 @@ spec:
- name: empty-dir
mountPath: /tmp
subPath: tmp-dir
{{- if .Values.auth.usePasswordFiles }}
{{- if and .Values.auth.enabled .Values.auth.usePasswordFiles }}
- name: redis-password
mountPath: /secrets/
{{- end }}
Expand Down Expand Up @@ -742,7 +742,7 @@ spec:
name: {{ printf "%s-kubectl-scripts" (include "common.names.fullname" .) }}
defaultMode: 0755
{{- end }}
{{- 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 1642f81

Please sign in to comment.