Skip to content

Commit

Permalink
update docker image of init container
Browse files Browse the repository at this point in the history
  • Loading branch information
ravisingal committed Oct 20, 2022
1 parent 744236b commit 1a1f7af
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 9 additions & 3 deletions helm/templates/controller/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,19 @@ spec:
exitCode=1
i=0
while [ $i -le {{ .Values.zookeeper.retries }} ]; do
bin/zookeeper-shell.sh ZooKeeper -server {{ include "zookeeper.url" . | quote }} create {{ .Values.zookeeper.path | quote }} ""
bin/zookeeper-shell.sh ZooKeeper -server {{ include "zookeeper.url" . | quote }} ls {{ .Values.zookeeper.path | quote }}
if [ $? -eq 0 ]; then
exitCode=0
break
else
bin/zookeeper-shell.sh ZooKeeper -server {{ include "zookeeper.url" . | quote }} create {{ .Values.zookeeper.path | quote }} ""
if [ $? -eq 0 ]; then
exitCode=0
break
fi
sleep {{ .Values.zookeeper.retryInterval }}
i=`expr $i + 1`
fi
sleep {{ .Values.zookeeper.retryInterval }}
i=`expr $i + 1`
done
exit $exitCode
{{- end }}
Expand Down
4 changes: 2 additions & 2 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ zookeeper:
retries: 10
retryInterval: 5
image:
repository: "solsson/kafka"
tag: "2.1.0@sha256:ac3f06d87d45c7be727863f31e79fbfdcb9c610b51ba9cf03c75a95d602f15e1"
repository: "hypertrace/kafka"
tag: "0.2.0"
pullPolicy: IfNotPresent
pullSecret: ""

0 comments on commit 1a1f7af

Please sign in to comment.