Skip to content

Commit 5c7fed5

Browse files
authoredSep 4, 2023
[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 <davy@ikv.tw>
1 parent 0fb66f2 commit 5c7fed5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎bitnami/redis/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ maintainers:
3434
name: redis
3535
sources:
3636
- https://github.com/bitnami/charts/tree/main/bitnami/redis
37-
version: 18.0.1
37+
version: 18.0.2

‎bitnami/redis/templates/secret-svcbind.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ data:
3030
port: {{ print $port | b64enc | quote }}
3131
password: {{ print $password | b64enc | quote }}
3232
{{- if $password }}
33-
uri: {{ printf "redis://%s@%s:%s" $password $host $port | b64enc | quote }}
33+
uri: {{ printf "redis://:%s@%s:%s" $password $host $port | b64enc | quote }}
3434
{{- else }}
3535
uri: {{ printf "redis://%s:%s" $host $port | b64enc | quote }}
3636
{{- end }}

0 commit comments

Comments
 (0)
Please sign in to comment.