Skip to content

Commit efeb56c

Browse files
committed
Use credentials when describing keyspaces in cassandra schema builder
This follows #1635 in order to solve jaegertracing/jaeger-operator#469 Signed-off-by: Emilien Kenler <emilien@cryptact.com>
1 parent 62cf818 commit efeb56c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugin/storage/cassandra/schema/docker.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ PASSWORD=${CASSANDRA_PASSWORD:-""}
1717
total_wait=0
1818
while true
1919
do
20-
${CQLSH} ${CQLSH_SSL} ${CQLSH_HOST} -e "describe keyspaces"
20+
if [ -z "$PASSWORD" ]; then
21+
${CQLSH} ${CQLSH_SSL} ${CQLSH_HOST} -e "describe keyspaces"
22+
else
23+
${CQLSH} ${CQLSH_SSL} ${CQLSH_HOST} -u ${USER} -p ${PASSWORD} -e "describe keyspaces"
24+
fi
2125
if (( $? == 0 )); then
2226
break
2327
else

0 commit comments

Comments
 (0)