Skip to content

Commit

Permalink
[#3572] Use only Kafka when provisioning topics
Browse files Browse the repository at this point in the history
ljupcovangelski committed Aug 10, 2022
1 parent 4182529 commit 091ae52
Showing 2 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -17,7 +17,14 @@ data:
set -euo pipefail
IFS=$'\n\t'
ZOOKEEPER=${ZOOKEEPER:-zookeeper:2181}
if [ -z "${KAFKA_BROKERS+x}" ]; then
echo "KAFKA_BROKERS is not set. Exiting."
exit 1
else
CONNECTION_OPTS=(--bootstrap-server $KAFKA_BROKERS)
fi
PARTITIONS=${PARTITIONS:-10}
REPLICAS=${KAFKA_MINIMUM_REPLICAS:-1}
AIRY_CORE_NAMESPACE=${AIRY_CORE_NAMESPACE:-}
Original file line number Diff line number Diff line change
@@ -42,7 +42,14 @@ public static void main(String[] args) {
" set -euo pipefail\n" +
" IFS=$'\\n\\t'\n" +
"\n" +
" ZOOKEEPER=${ZOOKEEPER:-zookeeper:2181}\n" +
"\n" +
" if [ -z \"${KAFKA_BROKERS+x}\" ]; then\n" +
" echo \"KAFKA_BROKERS is not set. Exiting.\"\n" +
" exit 1\n" +
" else\n" +
" CONNECTION_OPTS=(--bootstrap-server $KAFKA_BROKERS)\n" +
" fi\n" +
"\n" +
" PARTITIONS=${PARTITIONS:-10}\n" +
" REPLICAS=${KAFKA_MINIMUM_REPLICAS:-1}\n" +
" AIRY_CORE_NAMESPACE=${AIRY_CORE_NAMESPACE:-}\n" +

0 comments on commit 091ae52

Please sign in to comment.