Skip to content

Commit cd701ec

Browse files
authored
add support of extra volumes and mounts for autorecovery (#607)
1 parent d4afc98 commit cd701ec

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

charts/pulsar/templates/autorecovery-statefulset.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ spec:
127127
- configMapRef:
128128
name: "{{ template "pulsar.fullname" . }}-{{ .Values.autorecovery.component }}"
129129
volumeMounts:
130+
{{- if .Values.autorecovery.extraVolumeMounts }}
131+
{{ toYaml .Values.autorecovery.extraVolumeMounts | indent 8 }}
132+
{{- end }}
130133
{{- include "pulsar.autorecovery.certs.volumeMounts" . | nindent 8 }}
131134
{{- end }}
132135
{{- if .Values.autorecovery.initContainers }}
@@ -156,6 +159,9 @@ spec:
156159
{{- include "pulsar.autorecovery.certs.volumeMounts" . | nindent 8 }}
157160
volumes:
158161
{{- include "pulsar.autorecovery.certs.volumes" . | nindent 6 }}
162+
{{- if .Values.autorecovery.extraVolumes }}
163+
{{ toYaml .Values.autorecovery.extraVolumes | indent 6 }}
164+
{{- end }}
159165
{{- include "pulsar.imagePullSecrets" . | nindent 6}}
160166
{{- end }}
161167

charts/pulsar/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,8 @@ autorecovery:
852852
BOOKIE_MEM: >
853853
-Xms64m -Xmx64m
854854
PULSAR_PREFIX_useV2WireProtocol: "true"
855+
extraVolumes: []
856+
extraVolumeMounts: []
855857

856858
## Pulsar Zookeeper metadata. The metadata will be deployed as
857859
## soon as the last zookeeper node is reachable. The deployment

0 commit comments

Comments
 (0)