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:
parent
343ce0527d
commit
9324a9a270
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user