mirror of
https://github.com/bitnami/charts.git
synced 2026-03-05 14:57:31 +08:00
[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:
@@ -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
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user