From 5b43c6b7f4cd6c0538b9896c5bec2651013afa0c Mon Sep 17 00:00:00 2001 From: Klaus Mueller Date: Thu, 29 Jan 2026 20:10:53 +0100 Subject: [PATCH 1/2] add database env --- charts/etherpad/templates/deployment.yaml | 16 ++++++++++++++++ charts/etherpad/values.yaml | 13 +++++++++++++ 2 files changed, 29 insertions(+) diff --git a/charts/etherpad/templates/deployment.yaml b/charts/etherpad/templates/deployment.yaml index 3f204dde..cf4abbb3 100644 --- a/charts/etherpad/templates/deployment.yaml +++ b/charts/etherpad/templates/deployment.yaml @@ -26,6 +26,22 @@ spec: value: {{ .Values.defaultTitle }} - name: DEFAULT_PAD_TEXT value: {{ .Values.defaultText }} + {{- if .Values.database.enabled }} + - name: DB_TYPE + value: {{ .Values.database.db_type }} + - name: DB_HOST + value: {{ .Values.database.db_host }} + - name: DB_PORT + value: "{{ .Values.database.db_port }}" + - name: DB_NAME + value: {{ .Values.database.db_name }} + - name: DB_USER + value: {{ .Values.database.db_user }} + - name: DB_PASS + value: {{ .Values.database.db_pass }} + - name: DB_CHARSET + value: {{ .Values.database.db_charset }} + {{- end }} name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} diff --git a/charts/etherpad/values.yaml b/charts/etherpad/values.yaml index ea953d1a..ec386d5e 100644 --- a/charts/etherpad/values.yaml +++ b/charts/etherpad/values.yaml @@ -51,9 +51,22 @@ tolerations: [] affinity: {} persistence: + # use DirtyDB enabled: true annotations: {} storageClass: accessMode: ReadWriteOnce size: 1Gi mountPath: /opt/etherpad-lite/var + +database: + enabled: false + # a database supported by https://www.npmjs.com/package/ueberdb2 + # https://github.com/ether/etherpad-lite/blob/develop/doc/docker.adoc#database + db_type: mysql + db_host: mysql.svc + db_port: 3306 + db_name: etherpad + db_user: etherpad + db_pass: password + db_charset: utf8mb4 From 04a8805ef0ace52f3158e1587db507c4f3585334 Mon Sep 17 00:00:00 2001 From: Klaus Mueller Date: Thu, 29 Jan 2026 20:20:25 +0100 Subject: [PATCH 2/2] version bump 0.0.9 --- charts/etherpad/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/etherpad/Chart.yaml b/charts/etherpad/Chart.yaml index 70f9fe7b..b3bd4945 100644 --- a/charts/etherpad/Chart.yaml +++ b/charts/etherpad/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: etherpad description: A Helm chart for etherpad lite type: application -version: 0.0.8 +version: 0.0.9 appVersion: latest home: https://github.com/redhat-cop/helm-charts icon: https://pbs.twimg.com/profile_images/1336377123964145665/2gTadaDt_400x400.jpg