mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[incubator/kafka]: fix wait loop for kafka to be ready (#7616)
Signed-off-by: Giacomo Guiulfo <giacomoguiulfo@gmail.com>
This commit is contained in:
committed by
k8s-ci-robot
parent
786fe268f4
commit
2000ec0611
@@ -2,7 +2,7 @@ apiVersion: v1
|
||||
description: Apache Kafka is publish-subscribe messaging rethought as a distributed
|
||||
commit log.
|
||||
name: kafka
|
||||
version: 0.9.4
|
||||
version: 0.9.5
|
||||
appVersion: 4.1.2
|
||||
keywords:
|
||||
- kafka
|
||||
|
||||
@@ -11,7 +11,7 @@ metadata:
|
||||
name: {{ template "kafka.fullname" . }}-config
|
||||
data:
|
||||
runtimeConfig.sh: |
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
set -e
|
||||
cd /usr/bin
|
||||
until kafka-configs --zookeeper {{ $zk }} --entity-type topics --describe || (( count++ >= 6 ))
|
||||
@@ -19,8 +19,7 @@ data:
|
||||
echo "Waiting for Zookeeper..."
|
||||
sleep 20
|
||||
done
|
||||
## wait until kafka is up
|
||||
until nc -z {{.Release.Name}}-kafka 9092 || (( count++ >= 6 ))
|
||||
until nc -z {{ template "kafka.fullname" . }} 9092 || (( retries++ >= 6 ))
|
||||
do
|
||||
echo "Waiting for Kafka..."
|
||||
sleep 20
|
||||
|
||||
Reference in New Issue
Block a user