From 709cf01b5cb728eed45e5e1eaaf8876af6cc6137 Mon Sep 17 00:00:00 2001 From: zymap Date: Wed, 3 Jul 2024 14:20:04 +0800 Subject: [PATCH] Mount the backup/restore configmap as the env --- charts/sn-platform/templates/zookeeper/zookeeper-cluster.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/sn-platform/templates/zookeeper/zookeeper-cluster.yaml b/charts/sn-platform/templates/zookeeper/zookeeper-cluster.yaml index 788c2707..fb45d4a1 100644 --- a/charts/sn-platform/templates/zookeeper/zookeeper-cluster.yaml +++ b/charts/sn-platform/templates/zookeeper/zookeeper-cluster.yaml @@ -90,6 +90,9 @@ spec: {{- end }} - name: METADATA_TOOL_CONF value: "/pulsar-metadata-tool/conf/pulsar-metadata-tool/pulsar-metadata-tool.properties" + envFrom: + - configMapRef: + name: "{{ template "pulsar.fullname" . }}-{{ .Values.zookeeper.customTools.restore.component }}" volumeMounts: - name: "data" mountPath: "/pulsar/data"