From 9324a9a27065204182d04c1f8dc64d800fbb39ee Mon Sep 17 00:00:00 2001 From: Michael Marshall Date: Thu, 20 Oct 2022 13:24:20 -0700 Subject: [PATCH] Fix bookkeeper metadata init when specifying metadataPrefix (#316) Fixes #309 ### Motivation Fix the metadataPrefix initialization. ### Modifications * Fix the script by adding `&& echo` ### Verifying this change I manually verified that this change works and correctly puts the metadata in the prefixed location. --- charts/pulsar/templates/bookkeeper-cluster-initialize.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/pulsar/templates/bookkeeper-cluster-initialize.yaml b/charts/pulsar/templates/bookkeeper-cluster-initialize.yaml index 928ddcf..c66f6f2 100644 --- a/charts/pulsar/templates/bookkeeper-cluster-initialize.yaml +++ b/charts/pulsar/templates/bookkeeper-cluster-initialize.yaml @@ -74,7 +74,7 @@ spec: echo "bookkeeper cluster already initialized"; else {{- if not (eq .Values.metadataPrefix "") }} - bin/bookkeeper org.apache.zookeeper.ZooKeeperMain -server {{ template "pulsar.fullname" . }}-{{ .Values.zookeeper.component }} create {{ .Values.metadataPrefix }} 'created for pulsar cluster "{{ template "pulsar.cluster.name" . }}"' && + bin/bookkeeper org.apache.zookeeper.ZooKeeperMain -server {{ template "pulsar.fullname" . }}-{{ .Values.zookeeper.component }} create {{ .Values.metadataPrefix }} && echo 'created for pulsar cluster "{{ template "pulsar.cluster.name" . }}"' && {{- end }} bin/bookkeeper shell initnewcluster; fi