Skip to content

Commit

Permalink
Enable option to add Volume, VolumeMount to devlake Deployment - crit…
Browse files Browse the repository at this point in the history
…ical for SSL certificate (#311)

* Update values.yaml

* Update deployments.yaml

* Adds end of file spaces to deployments.yaml

* fixed correct spaces in deployments.yaml

* fixes deployments.yaml
  • Loading branch information
GuillermoGarciaF authored Oct 21, 2024
1 parent 1b9a97f commit e87339b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
12 changes: 12 additions & 0 deletions charts/devlake/templates/deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,22 @@ spec:
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.lake.volumeMounts }}
volumeMounts:
{{- range $volumeMount := .Values.lake.volumeMounts }}
- {{- $volumeMount | toYaml | nindent 14 }}
{{- end }}
{{- end }}
{{- with .Values.lake.containerSecurityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.lake.volumes }}
volumes:
{{- range $volume := .Values.lake.volumes }}
- {{- $volume | toYaml | nindent 10 }}
{{- end }}
{{- end }}
{{- if .Values.lake.hostNetwork }}
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
Expand Down
15 changes: 15 additions & 0 deletions charts/devlake/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,21 @@ lake:
deployment:
extraLabels: {}

# Additional volumes to include in the Pod. Example:
#
# volumes:
# - name: my-volume
# configMap: my-config-map
volumes: []

# Additional volume mounts to include in the Container. Example:
#
# volumeMounts:
# - name: test-volume
# mountPath: /opt/test_folder
# subPath: test_file.yaml
volumeMounts: []

ui:
image:
repository: devlake.docker.scarf.sh/apache/devlake-config-ui
Expand Down

0 comments on commit e87339b

Please sign in to comment.