Skip to content

Commit af08a81

Browse files
authored
extra volume mounts for autorecovery [init] containers (#620)
1 parent e8ab0c6 commit af08a81

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

charts/pulsar/templates/autorecovery-statefulset.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ spec:
123123
- |
124124
bin/certs-combine-pem.sh /pulsar/certs/cacerts/ca-combined.pem {{ template "pulsar.certs.cacerts" (dict "certs" .Values.tls.autorecovery.cacerts.certs) }}
125125
volumeMounts:
126+
{{- if .Values.autorecovery.initContainersExtraVolumeMounts }}
127+
{{ toYaml .Values.autorecovery.initContainersExtraVolumeMounts | indent 8 }}
128+
{{- end }}
126129
{{- include "pulsar.autorecovery.certs.volumeMounts" . | nindent 8 }}
127130
{{- end }}
128131
{{- if and .Values.autorecovery.waitBookkeeperTimeout (gt (.Values.autorecovery.waitBookkeeperTimeout | int) 0) }}
@@ -140,8 +143,8 @@ spec:
140143
- configMapRef:
141144
name: "{{ template "pulsar.fullname" . }}-{{ .Values.autorecovery.component }}"
142145
volumeMounts:
143-
{{- if .Values.autorecovery.extraVolumeMounts }}
144-
{{ toYaml .Values.autorecovery.extraVolumeMounts | indent 8 }}
146+
{{- if .Values.autorecovery.initContainersExtraVolumeMounts }}
147+
{{ toYaml .Values.autorecovery.initContainersExtraVolumeMounts | indent 8 }}
145148
{{- end }}
146149
{{- include "pulsar.autorecovery.certs.volumeMounts" . | nindent 8 }}
147150
{{- end }}
@@ -174,6 +177,9 @@ spec:
174177
- configMapRef:
175178
name: "{{ template "pulsar.fullname" . }}-{{ .Values.autorecovery.component }}"
176179
volumeMounts:
180+
{{- if .Values.autorecovery.extraVolumeMounts }}
181+
{{ toYaml .Values.autorecovery.extraVolumeMounts | indent 8 }}
182+
{{- end }}
177183
{{- include "pulsar.autorecovery.certs.volumeMounts" . | nindent 8 }}
178184
volumes:
179185
{{- include "pulsar.autorecovery.certs.volumes" . | nindent 6 }}

charts/pulsar/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,7 @@ autorecovery:
949949
-Xms64m -Xmx64m
950950
PULSAR_PREFIX_useV2WireProtocol: "true"
951951
extraVolumes: []
952+
initContainersExtraVolumeMounts: []
952953
extraVolumeMounts: []
953954

954955
## Pulsar Zookeeper metadata. The metadata will be deployed as

0 commit comments

Comments
 (0)