Skip to content

Commit

Permalink
Mount the backup/restore configmap as the env (#1179)
Browse files Browse the repository at this point in the history
* Mount the backup configmap as env
---

### Motivation

Mount the backup configmap as env to make sure we can apply other
env from the configuration

* Mount the backup/restore configmap as the env

* Fix the indent in the zookeeper-cluster

* Remove unused file

* Apply the change to the slim charts

(cherry picked from commit b5863c1)
  • Loading branch information
zymap authored and ericsyh committed Jul 4, 2024
1 parent f1e2797 commit 0b600d2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/sn-platform/templates/zookeeper/zookeeper-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0b600d2

Please sign in to comment.