Skip to content

Commit 2f33b8e

Browse files
committed
Revert "Removes explicit topic creation from standard tests"
because we'll merge #221 This reverts commit 7a58284.
1 parent e059690 commit 2f33b8e

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

kafka/test/kafkacat.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,31 @@ data:
6262
6363
exit 0
6464
---
65+
apiVersion: batch/v1
66+
kind: Job
67+
metadata:
68+
name: topic-test-kafkacat
69+
namespace: test-kafka
70+
spec:
71+
template:
72+
spec:
73+
containers:
74+
- name: topic-create
75+
image: solsson/kafka:1.0.0@sha256:17fdf1637426f45c93c65826670542e36b9f3394ede1cb61885c6a4befa8f72d
76+
command:
77+
- ./bin/kafka-topics.sh
78+
- --zookeeper
79+
- zookeeper.kafka.svc.cluster.local:2181
80+
- --create
81+
- --if-not-exists
82+
- --topic
83+
- test-kafkacat
84+
- --partitions
85+
- "1"
86+
- --replication-factor
87+
- "2"
88+
restartPolicy: Never
89+
---
6590
apiVersion: apps/v1beta2
6691
kind: ReplicaSet
6792
metadata:

kafka/test/produce-consume.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,31 @@ data:
4545
4646
exit 0
4747
---
48+
apiVersion: batch/v1
49+
kind: Job
50+
metadata:
51+
name: topic-test-produce-consume
52+
namespace: test-kafka
53+
spec:
54+
template:
55+
spec:
56+
containers:
57+
- name: topic-create
58+
image: solsson/kafka:1.0.0@sha256:17fdf1637426f45c93c65826670542e36b9f3394ede1cb61885c6a4befa8f72d
59+
command:
60+
- ./bin/kafka-topics.sh
61+
- --zookeeper
62+
- zookeeper.kafka.svc.cluster.local:2181
63+
- --create
64+
- --if-not-exists
65+
- --topic
66+
- test-produce-consume
67+
- --partitions
68+
- "1"
69+
- --replication-factor
70+
- "2"
71+
restartPolicy: Never
72+
---
4873
apiVersion: apps/v1beta2
4974
kind: ReplicaSet
5075
metadata:

0 commit comments

Comments
 (0)