From 7a643b6eb26c45a21c75e04596756be4bf35ec69 Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Mon, 28 Nov 2022 14:52:41 +0100 Subject: [PATCH] Add the PREPARED_STATEMENTS environment variable and set it to its default value Being able to control it can be useful in situations where prepared statements don't work as expected. Once such case can be pgbouncer as provided by DigitalOcean for connection pooling. --- templates/configmap-env.yaml | 1 + values.yaml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/templates/configmap-env.yaml b/templates/configmap-env.yaml index 5c400db..265bd41 100644 --- a/templates/configmap-env.yaml +++ b/templates/configmap-env.yaml @@ -15,6 +15,7 @@ data: DB_NAME: {{ .Values.postgresql.auth.database }} DB_POOL: {{ include "mastodon.maxDbPool" . }} DB_USER: {{ .Values.postgresql.auth.username }} + PREPARED_STATEMENTS: {{ .Values.mastodon.preparedStatements | quote }} DEFAULT_LOCALE: {{ .Values.mastodon.locale }} {{- if .Values.elasticsearch.enabled }} ES_ENABLED: "true" diff --git a/values.yaml b/values.yaml index 10c7785..711f000 100644 --- a/values.yaml +++ b/values.yaml @@ -202,6 +202,9 @@ mastodon: # -- Enable statsd publishing via STATSD_ADDR environment variable address: "" + # Sets the PREPARED_STATEMENTS environment variable: https://docs.joinmastodon.org/admin/config/#prepared_statements + preparedStatements: true + ingress: enabled: true annotations: