Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/etherpad/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 16 additions & 0 deletions charts/etherpad/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
13 changes: 13 additions & 0 deletions charts/etherpad/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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