From 64e7d96677f4b9800f2e87776039bf607c22b611 Mon Sep 17 00:00:00 2001 From: Arie Peterson Date: Wed, 6 Dec 2023 14:58:31 +0100 Subject: [PATCH] Allow setting extra volumes and volumes mounts --- kubernetes/chart/zulip/templates/statefulset.yaml | 6 ++++++ kubernetes/chart/zulip/values.yaml | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/kubernetes/chart/zulip/templates/statefulset.yaml b/kubernetes/chart/zulip/templates/statefulset.yaml index 43109e2bfa..1bcca11097 100644 --- a/kubernetes/chart/zulip/templates/statefulset.yaml +++ b/kubernetes/chart/zulip/templates/statefulset.yaml @@ -50,6 +50,9 @@ spec: mountPath: /data - name: {{ include "zulip.fullname" . }}-post-setup-scripts mountPath: /data/post-setup.d + {{- with .Values.extraVolumeMounts }} + {{- toYaml . | nindent 12 }} + {{- end }} env: {{ include "zulip.env" . | nindent 12 }} resources: @@ -94,6 +97,9 @@ spec: configMap: name: {{ include "zulip.fullname" . }}-post-setup-scripts defaultMode: 0750 + {{- with .Values.extraVolumes }} + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/kubernetes/chart/zulip/values.yaml b/kubernetes/chart/zulip/values.yaml index f9b2d66149..8f3c7ff76b 100644 --- a/kubernetes/chart/zulip/values.yaml +++ b/kubernetes/chart/zulip/values.yaml @@ -166,6 +166,14 @@ startupProbe: failureThreshold: 30 successThreshold: 1 +# -- Extra volumes. These will be added as inline yaml to the list of volumes +# of the zulip pod. +extraVolumes: [] + +# -- Extra volume mounts. These will be added as inline yaml to the list of +# volume mounts of the zulip container. +extraVolumeMounts: [] + postSetup: # -- The Docker entrypoint script runs commands from `/data/post-setup.d` after # the Zulip application's Setup phase has completed. Scripts can be added here