Skip to content

Commit 6d5edbb

Browse files
authored
Add support for extra containers, environment variables, volumes, and volume mounts (#41)
1 parent 8d14260 commit 6d5edbb

3 files changed

Lines changed: 56 additions & 3 deletions

File tree

charts/cryptpad/Chart.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
- name: common
33
repository: oci://registry-1.docker.io/bitnamicharts
4-
version: 2.31.4
5-
digest: sha256:2d3ac560b149aaf583ce2c70b6bbd15f35da59a8e5c23d6a240df3534ea5f39b
6-
generated: "2025-12-15T21:52:37.640097823-03:00"
4+
version: 2.39.0
5+
digest: sha256:3eb3792ee943930941c29d63cd9c9ec07b7ce0da04b23e6b6eb4378a7ea9c0a0
6+
generated: "2026-05-15T15:55:14.210952212+02:00"

charts/cryptpad/templates/cryptpad.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ spec:
6666
fi
6767
resources:
6868
{{- toYaml .Values.resources | nindent 12 }}
69+
{{- with .Values.extraInitContainers }}
70+
{{- toYaml . | nindent 8 }}
71+
{{- end }}
6972
containers:
7073
- name: {{ .Chart.Name }}
7174
securityContext:
@@ -79,6 +82,9 @@ spec:
7982
value: "{{ include "cryptpad-helm.sandboxDomain" . | trim }}"
8083
- name: CPAD_CONF
8184
value: "{{ .Values.cpadConfig }}"
85+
{{- with .Values.extraEnv }}
86+
{{- toYaml . | nindent 12 }}
87+
{{- end }}
8288
ports:
8389
- name: {{ .Values.service.internalPort }}
8490
containerPort: {{ .Values.service.containerPort }}
@@ -154,6 +160,12 @@ spec:
154160
- name: configmaps
155161
mountPath: /cryptpad/customize/application_config.js
156162
subPath: application_config.js
163+
{{- with .Values.extraVolumeMounts }}
164+
{{- toYaml . | nindent 12 }}
165+
{{- end }}
166+
{{- with .Values.extraContainers }}
167+
{{- toYaml . | nindent 8 }}
168+
{{- end }}
157169
{{- with .Values.nodeSelector }}
158170
nodeSelector:
159171
{{- toYaml . | nindent 8 }}
@@ -170,6 +182,9 @@ spec:
170182
- name: configmaps
171183
configMap:
172184
name: {{ include "cryptpad-helm.fullname" . }}
185+
{{- with .Values.extraVolumes }}
186+
{{- toYaml . | nindent 8 }}
187+
{{- end }}
173188
{{- if and .Values.persistence.enabled .Values.workloadStateful }}
174189
{{- range $dir, $dirvalues := .Values.persistence.cryptpad }}
175190
{{- if $dirvalues.existingClaim }}

charts/cryptpad/values.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,44 @@ enableEmbedding: false
100100
# -- Restrict registration to only users with admin keys
101101
restrictRegistration: false
102102

103+
# -- Additional init containers (e.g. clone a plugin into a shared volume).
104+
# Rendered into `.spec.template.spec.initContainers` after the built-in init container.
105+
extraInitContainers: []
106+
# - name: install-sso-plugin
107+
# image: alpine/git:2.45.2
108+
# command: ['sh', '-c', 'git clone --depth=1 https://github.com/cryptpad/sso /plugins/sso']
109+
# volumeMounts:
110+
# - name: sso-plugin
111+
# mountPath: /plugins
112+
113+
# -- Additional sidecar containers. Rendered into `.spec.template.spec.containers` after the main container.
114+
extraContainers: []
115+
116+
# -- Additional volumes for the pod. Rendered into `.spec.template.spec.volumes`.
117+
extraVolumes: []
118+
# - name: sso-plugin
119+
# emptyDir: {}
120+
# - name: sso-config
121+
# secret:
122+
# secretName: cryptpad-sso
123+
124+
# -- Additional volume mounts for the main container.
125+
extraVolumeMounts: []
126+
# - name: sso-plugin
127+
# mountPath: /cryptpad/lib/plugins/sso
128+
# subPath: sso
129+
# - name: sso-config
130+
# mountPath: /cryptpad/config/sso.js
131+
# subPath: sso.js
132+
133+
# -- Additional environment variables for the main container (raw env entries, supports valueFrom).
134+
extraEnv: []
135+
# - name: OIDC_CLIENT_SECRET
136+
# valueFrom:
137+
# secretKeyRef:
138+
# name: cryptpad-sso
139+
# key: client_secret
140+
103141
imagePullSecrets: []
104142
nameOverride: ""
105143
fullnameOverride: ""

0 commit comments

Comments
 (0)