minor edits

This commit is contained in:
pat-s 2024-07-02 09:10:16 +02:00
parent a58ecda2d7
commit c910ea050f
No known key found for this signature in database
GPG Key ID: 3C6318841EF78925
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ app.kubernetes.io/instance: {{ .Release.Name }}
{{- define "redis.dns" -}}
{{- if and ((index .Values "redis-cluster").enabled) ((index .Values "redis").enabled) -}}
{{- fail "redis AND redis-cluster can't be both enabled" -}}
{{- fail "redis and redis-cluster cannot be enabled at the same time. Please only choose one." -}}
{{- else if (index .Values "redis-cluster").enabled -}}
{{- printf "redis+cluster://:%s@%s-redis-cluster-headless.%s.svc.%s:%g/0?pool_size=100&idle_timeout=180s&" (index .Values "redis-cluster").global.redis.password .Release.Name .Release.Namespace .Values.clusterDomain (index .Values "redis-cluster").service.ports.redis -}}
{{- else if (index .Values "redis").enabled -}}

View File

@ -48,7 +48,7 @@ tests:
CONN_STR=
TYPE=level
- it: "queue can be customized when redis (and redis-cluster) is disabled"
- it: "queue can be customized when redis (and redis-cluster) are disabled"
template: templates/gitea/config.yaml
set:
redis-cluster: