Skip to content

Commit

Permalink
Skipping Kafka related tests in examples2 when Kafka is not available
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Adeel <madeel@redhat.com>
  • Loading branch information
madeelrh committed Jan 13, 2021
1 parent 8eb0f1b commit 00f298e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -288,12 +288,16 @@ endif

.PHONY: kafka
kafka: deploy-kafka-operator
ifeq ($(SKIP_KAFKA),true)
@echo Skipping Kafka/external ES related tests
else
@echo Creating namespace $(KAFKA_NAMESPACE)
@kubectl create namespace $(KAFKA_NAMESPACE) 2>&1 | grep -v "already exists" || true
@curl --fail --location $(KAFKA_EXAMPLE) --output deploy/test/kafka-example.yaml --create-dirs
@sed -i 's/size: 100Gi/size: 10Gi/g' deploy/test/kafka-example.yaml
@kubectl -n $(KAFKA_NAMESPACE) apply --dry-run=true -f deploy/test/kafka-example.yaml
@kubectl -n $(KAFKA_NAMESPACE) apply -f deploy/test/kafka-example.yaml 2>&1 | grep -v "already exists" || true
endif

.PHONY: undeploy-kafka
undeploy-kafka: undeploy-kafka-operator
Expand Down

0 comments on commit 00f298e

Please sign in to comment.