This is an automated email from the ASF dual-hosted git repository.

klesh pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/incubator-devlake-helm-chart.git


The following commit(s) were added to refs/heads/main by this push:
     new e87339b  Enable option to add Volume, VolumeMount to devlake 
Deployment - critical for SSL certificate (#311)
e87339b is described below

commit e87339bd780dc8d34f84beeeb3a4e4fe4505c3d2
Author: Guillermo García Fernández 
<[email protected]>
AuthorDate: Mon Oct 21 09:03:03 2024 +0200

    Enable option to add Volume, VolumeMount to devlake Deployment - critical 
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
---
 charts/devlake/templates/deployments.yaml | 12 ++++++++++++
 charts/devlake/values.yaml                | 15 +++++++++++++++
 2 files changed, 27 insertions(+)

diff --git a/charts/devlake/templates/deployments.yaml 
b/charts/devlake/templates/deployments.yaml
index e2f6537..c2b9ece 100644
--- a/charts/devlake/templates/deployments.yaml
+++ b/charts/devlake/templates/deployments.yaml
@@ -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
diff --git a/charts/devlake/values.yaml b/charts/devlake/values.yaml
index 5905122..ad98363 100644
--- a/charts/devlake/values.yaml
+++ b/charts/devlake/values.yaml
@@ -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

Reply via email to