Skip to content

Commit 86404d8

Browse files
committed
Allow user defined volumes/volumeMounts for diracx pod
1 parent 467cd57 commit 86404d8

4 files changed

Lines changed: 17 additions & 2 deletions

File tree

diracx/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type: application
1111
# This is the chart version. This version number should be incremented each time you make changes
1212
# to the chart and its templates, including the app version.
1313
# Versions are expected to follow Semantic Versioning (https://semver.org/)
14-
version: "1.0.22"
14+
version: "1.0.23"
1515

1616
# This is the version number of the application being deployed. This version number should be
1717
# incremented each time you make changes to the application. Versions are not expected to

diracx/templates/diracx/deployment.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ spec:
6464
persistentVolumeClaim:
6565
claimName: pvc-coverage
6666
{{- end }}
67+
{{- with .Values.diracx.extraVolumes }}
68+
{{- . | toYaml | nindent 8 }}
69+
{{- end}}
6770

6871
{{/* Define common volume mounts for reusability */}}
6972
{{- $commonVolumeMounts := list }}
@@ -155,7 +158,11 @@ spec:
155158
- "--reload-dir={{ .Values.developer.sourcePath }}"
156159
{{- end }}
157160
{{- end }}
158-
volumeMounts: {{ toYaml $commonVolumeMounts | nindent 12 }}
161+
volumeMounts:
162+
{{- toYaml $commonVolumeMounts | nindent 12 }}
163+
{{- with .Values.diracx.extraVolumeMounts }}
164+
{{- . | toYaml | nindent 12 }}
165+
{{- end}}
159166
envFrom:
160167
# - configMapRef:
161168
# name: diracx-env-config

diracx/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,12 @@ diracx:
178178
DIRACX_OTEL_GRPC_ENDPOINT: "diracx-demo-opentelemetry-collector:4317"
179179
DIRACX_OTEL_GRPC_INSECURE: "true"
180180

181+
# -- Additional volumes for the diracx pod, e.g. to mount CA certificates
182+
extraVolumes:
183+
184+
# -- Additional volumeMounts for the diracx pod, e.g. to mount CA certificates
185+
extraVolumeMounts:
186+
181187
# If mysql is enabled, you are not allowed
182188
# to set the username passwords
183189
sqlDbs:

docs/admin/reference/values.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@
6262
| dex.service.ports.http.nodePort | int | `32002` | |
6363
| dex.service.ports.http.port | int | `8000` | |
6464
| dex.service.type | string | `"NodePort"` | |
65+
| diracx.extraVolumeMounts | string | `nil` | Additional volumeMounts for the diracx pod, e.g. to mount CA certificates |
66+
| diracx.extraVolumes | string | `nil` | Additional volumes for the diracx pod, e.g. to mount CA certificates |
6567
| diracx.hostname | string | `""` | Required: The hostname where the webapp/API is running |
6668
| diracx.osDbs.dbs | string | `nil` | Which DiracX OpenSearch DBs are used? |
6769
| diracx.osDbs.default | string | `nil` | |

0 commit comments

Comments
 (0)