File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 20
20
21
21
UNIQUE="${HOSTNAME}@$(date -u -Ins)"
22
22
23
- echo "Test $UNIQUE" >> /shared/produce.tmp
23
+ echo "${UNIQUE: -41:5}: Test $UNIQUE" >> /shared/produce.tmp
24
24
sleep $PC_WAIT
25
25
LAST=$(tail -n 1 /shared/consumed.tmp)
26
26
@@ -112,7 +112,7 @@ spec:
112
112
spec :
113
113
containers :
114
114
- name : producer
115
- image : solsson/kafkacat@sha256:ebebf47061300b14a4b4c2e1e4303ab29f65e4b95d34af1b14bb8f7ec6da7cef
115
+ image : solsson/kafkacat-fixedkey @sha256:c9c78aef3090519b64ecc279c06df6914c94720a27469200c079f1871b10fa8f
116
116
env :
117
117
- name : BOOTSTRAP
118
118
value : kafka-0.broker.kafka.svc.cluster.local:9092
@@ -123,7 +123,7 @@ spec:
123
123
echo "--- start $HOSTNAME $(date --iso-8601='ns' -u) ---" >> /shared/produce.tmp
124
124
;
125
125
tail -f /shared/produce.tmp |
126
- kafkacat -P -b $BOOTSTRAP -t test-basic-with-kafkacat -v -T -d broker
126
+ kafkacat -P -b $BOOTSTRAP -t test-basic-with-kafkacat -v -T -d broker -K ':'
127
127
;
128
128
volumeMounts :
129
129
- name : config
@@ -139,7 +139,7 @@ spec:
139
139
- /bin/bash
140
140
- -cex
141
141
- >
142
- kafkacat -C -b $BOOTSTRAP -t test-basic-with-kafkacat -o -1 -f '%T;%p;%o;%s\n' -u -d broker |
142
+ kafkacat -C -b $BOOTSTRAP -t test-basic-with-kafkacat -o -1 -f '%T;%k:% p;%o;%s\n' -u -d broker |
143
143
tee /shared/consumed.tmp
144
144
;
145
145
volumeMounts :
You can’t perform that action at this time.
0 commit comments