From a247071b07b37d65915ac0424b3629e1109e395b Mon Sep 17 00:00:00 2001 From: pat-s Date: Tue, 18 Jul 2023 19:22:51 +0200 Subject: [PATCH] don't condition session config on multiple replicas --- templates/_helpers.tpl | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index 5eb1cb0..8006bb9 100644 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -286,18 +286,15 @@ https {{- $_ := set .Values.gitea.config.queue "TYPE" "redis" -}} {{- $_ := set .Values.gitea.config.queue "CONN_STR" (include "redis.dns" .) -}} {{- end -}} - {{- /* multiple replicas */ -}} - {{- if gt .Values.replicaCount 1.0 -}} - {{- if not (get .Values.gitea.config.session "PROVIDER") -}} + {{- if not (get .Values.gitea.config.session "PROVIDER") -}} {{- $_ := set .Values.gitea.config.session "PROVIDER" "redis" -}} - {{- end -}} - {{- if not (get .Values.gitea.config.session "PROVIDER_CONFIG") -}} + {{- end -}} + {{- if not (get .Values.gitea.config.session "PROVIDER_CONFIG") -}} {{- $_ := set .Values.gitea.config.session "PROVIDER_CONFIG" (include "redis.dns" .) -}} - {{- end -}} + {{- end -}} {{- if not .Values.gitea.config.indexer.ISSUE_INDEXER_TYPE -}} {{- $_ := set .Values.gitea.config.indexer "ISSUE_INDEXER_TYPE" "db" -}} {{- end -}} - {{- end -}} {{- end -}} {{- define "gitea.inline_configuration.defaults.server" -}}