Workaround kustomize bug in pulsar cluster init (#166)

Replace folding block with multiline string to workaround https://github.com/kubernetes-sigs/kustomize/issues/4201

There are also other places where this bug is hit, but extra generated newline is not significant.

Co-authored-by: Lari Hotari <lhotari@users.noreply.github.com>
This commit is contained in:
matejhasul 2022-01-04 18:08:52 +01:00 committed by GitHub
parent d3589b1c82
commit 706c8c292b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,7 @@ spec:
{{- end }} {{- end }}
command: ["sh", "-c"] command: ["sh", "-c"]
args: args:
- > - |
{{- include "pulsar.toolset.zookeeper.tls.settings" . | nindent 12 }} {{- include "pulsar.toolset.zookeeper.tls.settings" . | nindent 12 }}
bin/pulsar initialize-cluster-metadata \ bin/pulsar initialize-cluster-metadata \
--cluster {{ template "pulsar.cluster.name" . }} \ --cluster {{ template "pulsar.cluster.name" . }} \