From 9c20d54dc9101cd9ce73a36fd481705214c72470 Mon Sep 17 00:00:00 2001 From: Phillip Schichtel Date: Mon, 16 Oct 2023 07:48:25 +0200 Subject: [PATCH] Additional Volumes Support for Tenant Helm Chart (#1786) allow configuring additionalVolumes and additionalVolumeMounts --- helm/tenant/templates/tenant.yaml | 6 ++++++ helm/tenant/values.yaml | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/helm/tenant/templates/tenant.yaml b/helm/tenant/templates/tenant.yaml index e21e9247712..1dabdf52136 100644 --- a/helm/tenant/templates/tenant.yaml +++ b/helm/tenant/templates/tenant.yaml @@ -130,6 +130,12 @@ spec: {{- if dig "priorityClassName" "" . }} priorityClassName: {{ dig "priorityClassName" "" . }} {{- end }} + {{- with (dig "additionalVolumes" (list) .) }} + additionalVolumes: {{- toYaml . | nindent 4 }} + {{- end }} + {{- with (dig "additionalVolumeMounts" (list) .) }} + additionalVolumeMounts: {{- toYaml . | nindent 4 }} + {{- end }} {{- if dig "kes" "configuration" false . }} kes: image: "{{ .kes.image.repository }}:{{ .kes.image.digest | default .kes.image.tag }}" diff --git a/helm/tenant/values.yaml b/helm/tenant/values.yaml index 80f01b7258a..b4634db565a 100644 --- a/helm/tenant/values.yaml +++ b/helm/tenant/values.yaml @@ -174,6 +174,10 @@ tenant: ## This is applied to MinIO pods only. ## Refer Kubernetes documentation for details https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass/ priorityClassName: "" + ## additionalVolumes allows adding additional volumes to MinIO pods + additionalVolumes: [ ] + ## additionalVolumeMounts allows mounting additional volumes to MinIO pods + additionalVolumeMounts: [ ] ## Define configuration for KES (stateless and distributed key-management system) ## Refer https://github.com/minio/kes #kes: