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 :
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 }}
0 commit comments