This is an automated email from the ASF dual-hosted git repository.

lhotari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-helm-chart.git


The following commit(s) were added to refs/heads/master by this push:
     new 8b47d1e  fix: Improve Zookeeper initialization wait logic to support 
multi url configuration store (#671)
8b47d1e is described below

commit 8b47d1eb659674424ad22fd92d7163e4535626c6
Author: Ganesh Kalyan K <[email protected]>
AuthorDate: Mon Apr 27 13:33:37 2026 +0530

    fix: Improve Zookeeper initialization wait logic to support multi url 
configuration store (#671)
    
    * fix: Improve Zookeeper initialization wait logic to support multi url cs
    
    * Update charts/pulsar/templates/pulsar-cluster-initialize.yaml
    
    * fix: Add TLS settings and volume mounts for Zookeeper initialization
    
    ---------
    
    Co-authored-by: Ganesh Kalyan Kommisetti <[email protected]>
---
 charts/pulsar/templates/pulsar-cluster-initialize.yaml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/charts/pulsar/templates/pulsar-cluster-initialize.yaml 
b/charts/pulsar/templates/pulsar-cluster-initialize.yaml
index dfbab23..873035c 100755
--- a/charts/pulsar/templates/pulsar-cluster-initialize.yaml
+++ b/charts/pulsar/templates/pulsar-cluster-initialize.yaml
@@ -70,9 +70,13 @@ spec:
         command: ["timeout", "{{ .Values.pulsar_metadata.waitZookeeperTimeout 
}}", "sh", "-c"]
         args:
           - |
-            until nslookup {{ .Values.pulsar_metadata.configurationStore}}; do
-              sleep 3;
+            export PULSAR_MEM="-Xmx128M";
+            {{- include "pulsar.toolset.zookeeper.tls.settings" . | nindent 12 
}}
+            until timeout 15 bin/pulsar zookeeper-shell -server "{{ template 
"pulsar.configurationStore.connect" . }}" ls /; do
+              echo "configurationStore {{ template 
"pulsar.configurationStore.connect" . }} is unreachable... check in 3 seconds 
..." && sleep 3;
             done;
+        volumeMounts:
+        {{- include "pulsar.toolset.certs.volumeMounts" . | nindent 8 }}
       {{- end }}
       - name: wait-zk-metastore-ready
         image: "{{ template "pulsar.imageFullName" (dict "image" 
.Values.pulsar_metadata.image "root" .) }}"

Reply via email to