diff --git a/charts/sn-platform-slim/templates/zookeeper/zookeeper-backup-statefulset.yaml b/charts/sn-platform-slim/templates/zookeeper/zookeeper-backup-statefulset.yaml index 6aea65bb..2285e37c 100644 --- a/charts/sn-platform-slim/templates/zookeeper/zookeeper-backup-statefulset.yaml +++ b/charts/sn-platform-slim/templates/zookeeper/zookeeper-backup-statefulset.yaml @@ -110,6 +110,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.backup.component }}" ports: - name: metrics containerPort: {{ .Values.zookeeper.customTools.backup.webServerPort }} diff --git a/charts/sn-platform-slim/templates/zookeeper/zookeeper-cluster.yaml b/charts/sn-platform-slim/templates/zookeeper/zookeeper-cluster.yaml index 6b663aec..b8e24951 100644 --- a/charts/sn-platform-slim/templates/zookeeper/zookeeper-cluster.yaml +++ b/charts/sn-platform-slim/templates/zookeeper/zookeeper-cluster.yaml @@ -105,6 +105,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" diff --git a/charts/sn-platform/templates/zookeeper/zookeeper-backup-statefulset.yaml b/charts/sn-platform/templates/zookeeper/zookeeper-backup-statefulset.yaml index 74adf966..72143745 100644 --- a/charts/sn-platform/templates/zookeeper/zookeeper-backup-statefulset.yaml +++ b/charts/sn-platform/templates/zookeeper/zookeeper-backup-statefulset.yaml @@ -110,6 +110,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.backup.component }}" ports: - name: metrics containerPort: {{ .Values.zookeeper.customTools.backup.webServerPort }} diff --git a/charts/sn-platform/templates/zookeeper/zookeeper-cluster.yaml b/charts/sn-platform/templates/zookeeper/zookeeper-cluster.yaml index 6b663aec..b8e24951 100644 --- a/charts/sn-platform/templates/zookeeper/zookeeper-cluster.yaml +++ b/charts/sn-platform/templates/zookeeper/zookeeper-cluster.yaml @@ -105,6 +105,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"