From 7a5828482dde0dccb351f6e4a2189b3689b87031 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Tue, 9 Jan 2018 08:13:36 +0100 Subject: [PATCH] Removes explicit topic creation from standard tests which means we get the default number of replicas from broker config for #116 --- kafka/test/kafkacat.yml | 25 ------------------------- kafka/test/produce-consume.yml | 25 ------------------------- 2 files changed, 50 deletions(-) diff --git a/kafka/test/kafkacat.yml b/kafka/test/kafkacat.yml index f73735d0..b1cc0008 100644 --- a/kafka/test/kafkacat.yml +++ b/kafka/test/kafkacat.yml @@ -62,31 +62,6 @@ data: exit 0 --- -apiVersion: batch/v1 -kind: Job -metadata: - name: topic-test-kafkacat - namespace: test-kafka -spec: - template: - spec: - containers: - - name: topic-create - image: solsson/kafka:1.0.0@sha256:17fdf1637426f45c93c65826670542e36b9f3394ede1cb61885c6a4befa8f72d - command: - - ./bin/kafka-topics.sh - - --zookeeper - - zookeeper.kafka.svc.cluster.local:2181 - - --create - - --if-not-exists - - --topic - - test-kafkacat - - --partitions - - "1" - - --replication-factor - - "2" - restartPolicy: Never ---- apiVersion: apps/v1beta2 kind: ReplicaSet metadata: diff --git a/kafka/test/produce-consume.yml b/kafka/test/produce-consume.yml index 4b1435b4..385278ea 100644 --- a/kafka/test/produce-consume.yml +++ b/kafka/test/produce-consume.yml @@ -45,31 +45,6 @@ data: exit 0 --- -apiVersion: batch/v1 -kind: Job -metadata: - name: topic-test-produce-consume - namespace: test-kafka -spec: - template: - spec: - containers: - - name: topic-create - image: solsson/kafka:1.0.0@sha256:17fdf1637426f45c93c65826670542e36b9f3394ede1cb61885c6a4befa8f72d - command: - - ./bin/kafka-topics.sh - - --zookeeper - - zookeeper.kafka.svc.cluster.local:2181 - - --create - - --if-not-exists - - --topic - - test-produce-consume - - --partitions - - "1" - - --replication-factor - - "2" - restartPolicy: Never ---- apiVersion: apps/v1beta2 kind: ReplicaSet metadata: