Skip to content
Snippets Groups Projects

feat: add support for Redis Sentinel passwords

Merged Stan Hu requested to merge sh-support-sentinel-password-try2 into master
All threads resolved!
@@ -278,7 +278,7 @@ Sentinel = [ {{ template "gitlab.redis.workhorse.sentinel-list" $ }} ]
{{- $passwordPath := printf "%s-password" (default "redis" .redisConfigName) }}
Password = {% file.Read "/etc/gitlab/redis/{{ $passwordPath }}" | strings.TrimSpace | data.ToJSON %}
{{- end }}
{{- if $.Values.global.redis.sentinelAuth.enabled }}
{{- if .redisMergedConfig.sentinelAuth.enabled }}
SentinelPassword = {% file.Read "/etc/gitlab/redis-sentinel/redis-sentinel-password" | strings.TrimSpace | data.ToJSON %}
{{- end }}
{{- $_ := set . "redisConfigName" "" }}
Loading