Skip to content

Commit

Permalink
Allow setting extra volumes and volumes mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
ariep committed Dec 6, 2023
1 parent b072ad7 commit 64e7d96
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kubernetes/chart/zulip/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
Expand Down
8 changes: 8 additions & 0 deletions kubernetes/chart/zulip/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 64e7d96

Please sign in to comment.