From 8a3c5832eb7c4ee82adf2fd06621e0779ebf8aff Mon Sep 17 00:00:00 2001 From: chris Date: Sat, 5 Nov 2022 14:22:58 +0100 Subject: [PATCH] feat(gotosocial): allow generic configuration --- gotosocial/templates/config.yaml | 7 +++++++ gotosocial/templates/deployment.yaml | 6 ++++++ gotosocial/values.yaml | 6 ++++++ 3 files changed, 19 insertions(+) create mode 100644 gotosocial/templates/config.yaml diff --git a/gotosocial/templates/config.yaml b/gotosocial/templates/config.yaml new file mode 100644 index 0000000..1bebf75 --- /dev/null +++ b/gotosocial/templates/config.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ .Release.Name }}-config + namespace: socaas +data: + {{- toYaml .Values.gtsConfig | nindent 2 }} diff --git a/gotosocial/templates/deployment.yaml b/gotosocial/templates/deployment.yaml index e6dc327..b360a45 100644 --- a/gotosocial/templates/deployment.yaml +++ b/gotosocial/templates/deployment.yaml @@ -29,6 +29,9 @@ spec: value: /gotosocial/storage/sqlite.db - name: GTS_DB_TYPE value: sqlite + envFrom: + - configMapRef: + name: {{ .Release.Name }}-config image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" name: init-{{ .Release.Name }}-gts volumeMounts: @@ -59,6 +62,9 @@ spec: value: "25" - name: GTS_TRUSTED_PROXIES value: 0.0.0.0/0 + envFrom: + - configMapRef: + name: {{ .Release.Name }}-config image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" name: {{ .Release.Name }}-gts volumeMounts: diff --git a/gotosocial/values.yaml b/gotosocial/values.yaml index 150e01e..900691d 100644 --- a/gotosocial/values.yaml +++ b/gotosocial/values.yaml @@ -23,3 +23,9 @@ gtsHost: "" gtsAdminAccountName: "" gtsAdminAccountMail: "" gtsAdminAccountPass: "" + +gtsConfig: {} + # further config, see https://docs.gotosocial.org/en/latest/configuration/ + # ex.: + # GTS_MEDIA_IMAGE_MAX_SIZE: 2097152 + # GTS_LOG_LEVEL: debug