mirror of
https://github.com/bitnami/charts.git
synced 2026-02-10 20:17:22 +08:00
[bitnami/redis] Fix: Add conditional check for adding default sentinel auth-pass (#36207)
* Add conditional check for sentinel auth-pass in configmap * Added a conditional check to ensure 'sentinel auth-pass' is only appended to the prepare-sentinel.conf if it is not already present. Signed-off-by: homayunj36 <homayunj36@gmail.com> * Bump version to 22.0.7 Signed-off-by: homayunj36 <homayunj36@gmail.com> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> * Bump version to 22.0.8 Signed-off-by: homayunj36 <homayunj36@gmail.com> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> --------- Signed-off-by: homayunj36 <homayunj36@gmail.com> Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> Signed-off-by: homayunj36 <35528049+homayunj36@users.noreply.github.com> Signed-off-by: Juan José Martos <jota.martos@broadcom.com> Co-authored-by: Bitnami Bot <bitnami.bot@broadcom.com> Co-authored-by: Juan José Martos <jota.martos@broadcom.com>
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 22.0.7 (2025-08-27)
|
||||
## 23.0.1 (2025-09-05)
|
||||
|
||||
* [bitnami/redis] Fix Redis sentinel initialization with single replica ([#35667](https://github.com/bitnami/charts/pull/35667))
|
||||
* [bitnami/redis] Fix: Add conditional check for adding default sentinel auth-pass ([#36207](https://github.com/bitnami/charts/pull/36207))
|
||||
|
||||
## <small>22.0.7 (2025-08-27)</small>
|
||||
|
||||
* [bitnami/redis] Fix Redis sentinel initialization with single replica (#35667) ([07a0857](https://github.com/bitnami/charts/commit/07a0857a60f5ccf850e1298a131f83005480ab80)), closes [#35667](https://github.com/bitnami/charts/issues/35667)
|
||||
|
||||
## <small>22.0.6 (2025-08-26)</small>
|
||||
|
||||
|
||||
@@ -38,4 +38,4 @@ maintainers:
|
||||
name: redis
|
||||
sources:
|
||||
- https://github.com/bitnami/charts/tree/main/bitnami/redis
|
||||
version: 23.0.0
|
||||
version: 23.0.1
|
||||
|
||||
@@ -432,7 +432,9 @@ data:
|
||||
# as well, prepare the new config in `prepare-sentinel.conf` and move it atomically to the ultimate destination when it is complete.
|
||||
cp /opt/bitnami/redis-sentinel/mounted-etc/sentinel.conf /opt/bitnami/redis-sentinel/etc/prepare-sentinel.conf
|
||||
{{- if .Values.auth.enabled }}
|
||||
{{- if not (contains "sentinel auth-pass" .Values.sentinel.configuration) }}
|
||||
printf "\nsentinel auth-pass %s %s" "{{ .Values.sentinel.masterSet }}" "$REDIS_PASSWORD" >> /opt/bitnami/redis-sentinel/etc/prepare-sentinel.conf
|
||||
{{- end }}
|
||||
{{- if and .Values.auth.enabled .Values.auth.sentinel }}
|
||||
printf "\nrequirepass %s" "$REDIS_PASSWORD" >> /opt/bitnami/redis-sentinel/etc/prepare-sentinel.conf
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user