add support of extra volumes and mounts for autorecovery (#607)

This commit is contained in:
Artem Nosulchyk 2025-05-07 01:44:11 -04:00 committed by GitHub
parent d4afc985d2
commit cd701ecedd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -127,6 +127,9 @@ spec:
- configMapRef: - configMapRef:
name: "{{ template "pulsar.fullname" . }}-{{ .Values.autorecovery.component }}" name: "{{ template "pulsar.fullname" . }}-{{ .Values.autorecovery.component }}"
volumeMounts: volumeMounts:
{{- if .Values.autorecovery.extraVolumeMounts }}
{{ toYaml .Values.autorecovery.extraVolumeMounts | indent 8 }}
{{- end }}
{{- include "pulsar.autorecovery.certs.volumeMounts" . | nindent 8 }} {{- include "pulsar.autorecovery.certs.volumeMounts" . | nindent 8 }}
{{- end }} {{- end }}
{{- if .Values.autorecovery.initContainers }} {{- if .Values.autorecovery.initContainers }}
@ -156,6 +159,9 @@ spec:
{{- include "pulsar.autorecovery.certs.volumeMounts" . | nindent 8 }} {{- include "pulsar.autorecovery.certs.volumeMounts" . | nindent 8 }}
volumes: volumes:
{{- include "pulsar.autorecovery.certs.volumes" . | nindent 6 }} {{- include "pulsar.autorecovery.certs.volumes" . | nindent 6 }}
{{- if .Values.autorecovery.extraVolumes }}
{{ toYaml .Values.autorecovery.extraVolumes | indent 6 }}
{{- end }}
{{- include "pulsar.imagePullSecrets" . | nindent 6}} {{- include "pulsar.imagePullSecrets" . | nindent 6}}
{{- end }} {{- end }}

View File

@ -852,6 +852,8 @@ autorecovery:
BOOKIE_MEM: > BOOKIE_MEM: >
-Xms64m -Xmx64m -Xms64m -Xmx64m
PULSAR_PREFIX_useV2WireProtocol: "true" PULSAR_PREFIX_useV2WireProtocol: "true"
extraVolumes: []
extraVolumeMounts: []
## Pulsar Zookeeper metadata. The metadata will be deployed as ## Pulsar Zookeeper metadata. The metadata will be deployed as
## soon as the last zookeeper node is reachable. The deployment ## soon as the last zookeeper node is reachable. The deployment