Skip to content

Commit e83aaa3

Browse files
committed
Fixes container log to show unreplicated partitions (if there are any)
1 parent bd2def5 commit e83aaa3

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

ops/test/replicated-partitions.yml renamed to maintenance/test/replicated-partitions.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,28 @@ spec:
1919
- name: kafka
2020
image: solsson/kafka:1.0.0@sha256:17fdf1637426f45c93c65826670542e36b9f3394ede1cb61885c6a4befa8f72d
2121
command:
22-
- tail
23-
- -f
24-
- /dev/null
22+
- /bin/bash
23+
- -ec
24+
- >
25+
touch /tmp/testlog;
26+
tail -f /tmp/testlog
2527
readinessProbe:
2628
exec:
2729
command:
2830
- /bin/bash
2931
- -c
3032
- >
33+
echo "### $(date -Ins -u) ###" >> /tmp/testlog
34+
&&
3135
[
3236
$(
3337
./bin/kafka-topics.sh
3438
--zookeeper zookeeper.kafka:2181
3539
--describe
3640
--under-replicated-partitions
3741
|
42+
tee -a /tmp/testlog
43+
|
3844
wc -l
3945
)
4046
-eq

0 commit comments

Comments
 (0)