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.
This commit is contained in:
Michael Marshall 2022-10-20 13:24:20 -07:00 committed by GitHub
parent 343ce0527d
commit 9324a9a270
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ spec:
echo "bookkeeper cluster already initialized"; echo "bookkeeper cluster already initialized";
else else
{{- if not (eq .Values.metadataPrefix "") }} {{- 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 }} {{- end }}
bin/bookkeeper shell initnewcluster; bin/bookkeeper shell initnewcluster;
fi fi