From bed0297c5a66c1ef7bcbeda1c869c42e940d84a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20Garc=C3=ADa=20Fern=C3=A1ndez?= <64089445+GuillermoGarciaF@users.noreply.github.com> Date: Sun, 20 Oct 2024 19:36:02 +0200 Subject: [PATCH 1/5] Update values.yaml --- charts/devlake/values.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 From dcafa53f926aa65ff17afa6bafb3437831688fbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20Garc=C3=ADa=20Fern=C3=A1ndez?= <64089445+GuillermoGarciaF@users.noreply.github.com> Date: Sun, 20 Oct 2024 19:39:03 +0200 Subject: [PATCH 2/5] Update deployments.yaml --- charts/devlake/templates/deployments.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/charts/devlake/templates/deployments.yaml b/charts/devlake/templates/deployments.yaml index e2f6537..b18b27e 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 @@ -225,5 +237,3 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} - - From a49b07c89a242cdfa4d35bdf1fcf5e4ce7c392d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20Garc=C3=ADa=20Fern=C3=A1ndez?= <64089445+GuillermoGarciaF@users.noreply.github.com> Date: Sun, 20 Oct 2024 19:40:52 +0200 Subject: [PATCH 3/5] Adds end of file spaces to deployments.yaml --- charts/devlake/templates/deployments.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/devlake/templates/deployments.yaml b/charts/devlake/templates/deployments.yaml index b18b27e..975d375 100644 --- a/charts/devlake/templates/deployments.yaml +++ b/charts/devlake/templates/deployments.yaml @@ -232,6 +232,9 @@ spec: {{- with .Values.lake.affinity }} affinity: {{- toYaml . | nindent 8 }} + + + {{- end }} {{- with .Values.lake.tolerations }} tolerations: From 170f5a0fe3aa3c873e06d1ad13a45adf62bf206c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20Garc=C3=ADa=20Fern=C3=A1ndez?= <64089445+GuillermoGarciaF@users.noreply.github.com> Date: Sun, 20 Oct 2024 19:42:28 +0200 Subject: [PATCH 4/5] fixed correct spaces in deployments.yaml --- charts/devlake/templates/deployments.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/charts/devlake/templates/deployments.yaml b/charts/devlake/templates/deployments.yaml index 975d375..5205113 100644 --- a/charts/devlake/templates/deployments.yaml +++ b/charts/devlake/templates/deployments.yaml @@ -231,12 +231,10 @@ spec: {{- end }} {{- with .Values.lake.affinity }} affinity: - {{- toYaml . | nindent 8 }} - - - - {{- end }} + {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.lake.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} + + From 2cf29f6b564621d902df27863eed47bd79c3dd1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20Garc=C3=ADa=20Fern=C3=A1ndez?= <64089445+GuillermoGarciaF@users.noreply.github.com> Date: Sun, 20 Oct 2024 19:43:17 +0200 Subject: [PATCH 5/5] fixes deployments.yaml --- charts/devlake/templates/deployments.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/devlake/templates/deployments.yaml b/charts/devlake/templates/deployments.yaml index 5205113..c2b9ece 100644 --- a/charts/devlake/templates/deployments.yaml +++ b/charts/devlake/templates/deployments.yaml @@ -231,7 +231,8 @@ spec: {{- end }} {{- with .Values.lake.affinity }} affinity: - {{- toYaml . | nindent 8 }} {{- end }} + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.lake.tolerations }} tolerations: {{- toYaml . | nindent 8 }}