diff options
-rw-r--r-- | maintenance/test/replicated-partitions.yml (renamed from ops/test/replicated-partitions.yml) | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/ops/test/replicated-partitions.yml b/maintenance/test/replicated-partitions.yml index 5021069..a1f8158 100644 --- a/ops/test/replicated-partitions.yml +++ b/maintenance/test/replicated-partitions.yml @@ -19,15 +19,19 @@ spec: - name: kafka image: solsson/kafka:1.0.0@sha256:17fdf1637426f45c93c65826670542e36b9f3394ede1cb61885c6a4befa8f72d command: - - tail - - -f - - /dev/null + - /bin/bash + - -ec + - > + touch /tmp/testlog; + tail -f /tmp/testlog readinessProbe: exec: command: - /bin/bash - -c - > + echo "### $(date -Ins -u) ###" >> /tmp/testlog + && [ $( ./bin/kafka-topics.sh @@ -35,6 +39,8 @@ spec: --describe --under-replicated-partitions | + tee -a /tmp/testlog + | wc -l ) -eq |