summaryrefslogtreecommitdiffstats
path: root/src/main/docker/include/etc/confluent/docker/ensure
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/docker/include/etc/confluent/docker/ensure')
-rw-r--r--src/main/docker/include/etc/confluent/docker/ensure11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/main/docker/include/etc/confluent/docker/ensure b/src/main/docker/include/etc/confluent/docker/ensure
index 4bc99f3..09160f0 100644
--- a/src/main/docker/include/etc/confluent/docker/ensure
+++ b/src/main/docker/include/etc/confluent/docker/ensure
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
-# Copyright 2016 Confluent Inc.
+# Copyright 2020 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -20,5 +20,10 @@ export KAFKA_DATA_DIRS=${KAFKA_DATA_DIRS:-"/var/lib/kafka/data"}
echo "===> Check if $KAFKA_DATA_DIRS is writable ..."
dub path "$KAFKA_DATA_DIRS" writable
-echo "===> Check if Zookeeper is healthy ..."
-cub zk-ready "$KAFKA_ZOOKEEPER_CONNECT" "${KAFKA_CUB_ZK_TIMEOUT:-40}"
+if [[ -n "${KAFKA_ZOOKEEPER_SSL_CLIENT_ENABLE-}" ]] && [[ $KAFKA_ZOOKEEPER_SSL_CLIENT_ENABLE == "true" ]]
+then
+ echo "===> Skipping Zookeeper health check for SSL connections..."
+else
+ echo "===> Check if Zookeeper is healthy ..."
+ cub zk-ready "$KAFKA_ZOOKEEPER_CONNECT" "${KAFKA_CUB_ZK_TIMEOUT:-40}"
+fi \ No newline at end of file