Skip to content

Commit e87339b

Browse files
Enable option to add Volume, VolumeMount to devlake Deployment - critical for SSL certificate (apache#311)
* Update values.yaml * Update deployments.yaml * Adds end of file spaces to deployments.yaml * fixed correct spaces in deployments.yaml * fixes deployments.yaml
1 parent 1b9a97f commit e87339b

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

charts/devlake/templates/deployments.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,22 @@ spec:
205205
resources:
206206
{{- toYaml . | nindent 12 }}
207207
{{- end }}
208+
{{- if .Values.lake.volumeMounts }}
209+
volumeMounts:
210+
{{- range $volumeMount := .Values.lake.volumeMounts }}
211+
- {{- $volumeMount | toYaml | nindent 14 }}
212+
{{- end }}
213+
{{- end }}
208214
{{- with .Values.lake.containerSecurityContext }}
209215
securityContext:
210216
{{- toYaml . | nindent 12 }}
211217
{{- end }}
218+
{{- if .Values.lake.volumes }}
219+
volumes:
220+
{{- range $volume := .Values.lake.volumes }}
221+
- {{- $volume | toYaml | nindent 10 }}
222+
{{- end }}
223+
{{- end }}
212224
{{- if .Values.lake.hostNetwork }}
213225
hostNetwork: true
214226
dnsPolicy: ClusterFirstWithHostNet

charts/devlake/values.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,21 @@ lake:
252252
deployment:
253253
extraLabels: {}
254254

255+
# Additional volumes to include in the Pod. Example:
256+
#
257+
# volumes:
258+
# - name: my-volume
259+
# configMap: my-config-map
260+
volumes: []
261+
262+
# Additional volume mounts to include in the Container. Example:
263+
#
264+
# volumeMounts:
265+
# - name: test-volume
266+
# mountPath: /opt/test_folder
267+
# subPath: test_file.yaml
268+
volumeMounts: []
269+
255270
ui:
256271
image:
257272
repository: devlake.docker.scarf.sh/apache/devlake-config-ui

0 commit comments

Comments
 (0)