File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 1616 run.sh : |-
1717 exec >> /tmp/testlog
1818 exec 2>&1
19- echo "Test completed at $(date -u +%Y-%m-%dT%H:%M:%SZ)."
19+
20+ unique=$(date -Ins)
21+
22+ echo "Test $unique" | kafkacat -P -b $BOOTSTRAP -t test-basic-produce-consume -v
23+ kafkacat -C -b $BOOTSTRAP -t test-basic-produce-consume -o -1 -e | grep $unique
24+
2025 exit 0
2126
2227 ---
@@ -66,24 +71,28 @@ spec:
6671 # image: solsson/kubectl-kafkacat@sha256:3715a7ede3f168f677ee6faf311ff6887aff31f660cfeecad5d87b4f18516321
6772 env :
6873 - name : BOOTSTRAP
69- value : kafka-0.broker.kafka.svc.cluster.local:9092,kafka-1.broker.kafka.svc.cluster.local:9092,kafka-2.broker.kafka.svc.cluster.local:9092
74+ # value: kafka-0.broker.kafka.svc.cluster.local:9092,kafka-1.broker.kafka.svc.cluster.local:9092,kafka-2.broker.kafka.svc.cluster.local:9092
75+ value : kafka-0.broker.kafka.svc.cluster.local:9092
7076 - name : ZOOKEEPER
7177 value : zookeeper.kafka.svc.cluster.local:2181
7278 # Test set up
7379 command :
7480 - /bin/bash
81+ - -e
7582 - /test/setup.sh
7683 # Test run, again and again
7784 readinessProbe :
7885 exec :
7986 command :
8087 - /bin/bash
88+ - -e
8189 - /test/run.sh
8290 # Test quit on nonzero exit
8391 livenessProbe :
8492 exec :
8593 command :
8694 - /bin/bash
95+ - -e
8796 - /test/continue.sh
8897 volumeMounts :
8998 - name : config
You can’t perform that action at this time.
0 commit comments