From 0cd95492789a6c7dad0b9fb567726844a2c230f3 Mon Sep 17 00:00:00 2001 From: Filipe Caixeta Date: Wed, 9 Mar 2022 18:19:27 -0300 Subject: [PATCH] fix multiline strings --- .../pulsar/templates/zookeeper/zookeeper-metadata.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm-chart-sources/pulsar/templates/zookeeper/zookeeper-metadata.yaml b/helm-chart-sources/pulsar/templates/zookeeper/zookeeper-metadata.yaml index ae30f50b..a4390441 100644 --- a/helm-chart-sources/pulsar/templates/zookeeper/zookeeper-metadata.yaml +++ b/helm-chart-sources/pulsar/templates/zookeeper/zookeeper-metadata.yaml @@ -54,7 +54,7 @@ spec: imagePullPolicy: {{ .Values.image.zookeeper.pullPolicy }} command: ["sh", "-c"] args: - - >- + - |- until [ "$(echo ruok | nc {{ template "pulsar.fullname" . }}-{{ .Values.zookeeper.component }}-{{ add (.Values.zookeeper.replicaCount | int) -1 }}.{{ template "pulsar.fullname" . }}-{{ .Values.zookeeper.component }}.{{ .Release.Namespace }} 2181)" = "imok" ]; do echo Zookeeper not yet ready. Will try again after 3 seconds. sleep 3; @@ -70,7 +70,7 @@ spec: {{- end }} command: ["sh", "-c"] args: - - > + - | bin/pulsar initialize-cluster-metadata \ --cluster {{ template "pulsar.fullname" . }} \ --zookeeper {{ template "pulsar.fullname" . }}-{{ .Values.zookeeper.component }} \