From 5c7fed512597818da5b2be0c6a62176b415ccc5f Mon Sep 17 00:00:00 2001 From: "Davy (IKV)" <115144341+davy-ikv@users.noreply.github.com> Date: Mon, 4 Sep 2023 18:07:52 +0800 Subject: [PATCH] [bitnami/redis] expose service binding with correct uri (#18922) Redis URI format should be like this: "redis://user:secret@localhost:6379/0?foo=bar&qux=baz" The "userinfo" part should be "user:secret". Since user part is empty, the uri will leave a colon then concatenate with the secret. Signed-off-by: Davy --- bitnami/redis/Chart.yaml | 2 +- bitnami/redis/templates/secret-svcbind.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bitnami/redis/Chart.yaml b/bitnami/redis/Chart.yaml index 70e1276e04..560bfe9845 100644 --- a/bitnami/redis/Chart.yaml +++ b/bitnami/redis/Chart.yaml @@ -34,4 +34,4 @@ maintainers: name: redis sources: - https://github.com/bitnami/charts/tree/main/bitnami/redis -version: 18.0.1 +version: 18.0.2 diff --git a/bitnami/redis/templates/secret-svcbind.yaml b/bitnami/redis/templates/secret-svcbind.yaml index e9ad541a2f..a1bfbe054e 100644 --- a/bitnami/redis/templates/secret-svcbind.yaml +++ b/bitnami/redis/templates/secret-svcbind.yaml @@ -30,7 +30,7 @@ data: port: {{ print $port | b64enc | quote }} password: {{ print $password | b64enc | quote }} {{- if $password }} - uri: {{ printf "redis://%s@%s:%s" $password $host $port | b64enc | quote }} + uri: {{ printf "redis://:%s@%s:%s" $password $host $port | b64enc | quote }} {{- else }} uri: {{ printf "redis://%s:%s" $host $port | b64enc | quote }} {{- end }}