[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>
This commit is contained in:
Davy (IKV)
2023-09-04 18:07:52 +08:00
committed by GitHub
parent 0fb66f2c6f
commit 5c7fed5125
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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 }}