From 32a786dfa7fd14ac2d51b6c122b633b57b3bce89 Mon Sep 17 00:00:00 2001 From: Lily Cohen Date: Thu, 6 Jul 2023 22:07:32 -0500 Subject: [PATCH] make setting redis user work --- charts/calckey/README.md | 1 + charts/calckey/templates/_helpers.tpl | 4 +++- charts/calckey/values.yaml | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/calckey/README.md b/charts/calckey/README.md index 7dbbb14be3..a1fb62e06f 100644 --- a/charts/calckey/README.md +++ b/charts/calckey/README.md @@ -82,6 +82,7 @@ A fun, new, open way to experience social media https://calckey.org | postgresql.auth.username | string | `"calckey"` | | | postgresql.enabled | bool | `true` | disable if you want to use an existing db; in which case the values below must match those of that external postgres instance | | redis.auth.password | string | `""` | you must set a password; the password generated by the redis chart will be rotated on each upgrade: | +| redis.auth.user | string | `""` | optional - only used when using an external redis instance | | redis.db | string | `nil` | | | redis.enabled | bool | `true` | | | redis.hostname | string | `""` | | diff --git a/charts/calckey/templates/_helpers.tpl b/charts/calckey/templates/_helpers.tpl index 71337584a0..72419868b2 100644 --- a/charts/calckey/templates/_helpers.tpl +++ b/charts/calckey/templates/_helpers.tpl @@ -159,7 +159,9 @@ redis: {{- if .Values.redis.db }} db: {{ .Values.redis.db }} {{- end }} - #user: default + {{- if .Values.redis.auth.user }} + user: {{ .Values.redis.auth.user }} + {{- end }} #tls: # host: localhost # rejectUnauthorized: false diff --git a/charts/calckey/values.yaml b/charts/calckey/values.yaml index da7b2c13e4..2ab0ac7ae9 100644 --- a/charts/calckey/values.yaml +++ b/charts/calckey/values.yaml @@ -124,6 +124,8 @@ redis: # -- you must set a password; the password generated by the redis chart will be # rotated on each upgrade: password: "" + # -- optional - only used when using an external redis instance + user: "" # -- https://github.com/bitnami/charts/tree/master/bitnami/elasticsearch#parameters elasticsearch: