[bitnami/redis] Fix Redis sentinel initialization with single replica (#35667)

* Fix Redis sentinel initialization with single replica

The get_service_ip function was called unconditionally during master
initialization but only defined when external access is enabled.
This caused single-replica Redis deployments to fail during startup
when using the default internal-only configuration.

The fix makes the initialization logic consistent with the comparison
logic by using get_full_hostname when external access is disabled.

Signed-off-by: Pier-Luc Gagnon <gagnon.pierluc@gmail.com>

* Bump Redis chart version to 21.2.18

Signed-off-by: Pier-Luc Gagnon <gagnon.pierluc@gmail.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>

* Update Chart.yaml

Signed-off-by: Carlos Rodríguez Hernández <carlos.rodriguez-hernandez@broadcom.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>

---------

Signed-off-by: Pier-Luc Gagnon <gagnon.pierluc@gmail.com>
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
Signed-off-by: Carlos Rodríguez Hernández <carlos.rodriguez-hernandez@broadcom.com>
Co-authored-by: Bitnami Bot <bitnami.bot@broadcom.com>
Co-authored-by: Carlos Rodríguez Hernández <carlos.rodriguez-hernandez@broadcom.com>
This commit is contained in:
Nepoxx
2025-08-27 13:21:57 -04:00
committed by GitHub
parent c42b277e4c
commit 07a0857a60
2 changed files with 7 additions and 3 deletions

View File

@@ -1,8 +1,12 @@
# Changelog
## 22.0.6 (2025-08-26)
## 22.0.7 (2025-08-27)
* [bitnami/charts/issues/35435] Fix Redis configuration when using sentinel and 1 replica ([#36170](https://github.com/bitnami/charts/pull/36170))
* [bitnami/redis] Fix Redis sentinel initialization with single replica ([#35667](https://github.com/bitnami/charts/pull/35667))
## <small>22.0.6 (2025-08-26)</small>
* [bitnami/charts/issues/35435] Fix Redis configuration when using sentinel and 1 replica (#36170) ([7bc9738](https://github.com/bitnami/charts/commit/7bc9738651c99dc1a9d960da83f4502d9c2d352e)), closes [#36170](https://github.com/bitnami/charts/issues/36170)
## <small>22.0.5 (2025-08-23)</small>

View File

@@ -39,4 +39,4 @@ maintainers:
name: redis
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/redis
version: 22.0.6
version: 22.0.7