From 8ee98957db0ca7f6794ed9ad3b0fdb308c603366 Mon Sep 17 00:00:00 2001 From: Tigran Mkrtchyan Date: Fri, 8 Sep 2023 10:32:34 +0200 Subject: [PATCH] ci: collect billing records from kafka --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index abb4aab360e..99c089f84d5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -336,10 +336,12 @@ collect_logs: allow_failure: true script: - kubectl -n $K8S_NAMESPACE get pods | grep Running | awk '{print $1}' | xargs -n1 kubectl -n $K8S_NAMESPACE logs | tee $K8S_NAMESPACE.log + - kubectl -n $K8S_NAMESPACE run -ti --rm --image=edenhill/kcat:1.7.1 kcat -- kcat -C -t billing -b billing-kafka:9092 -p 0 -e -q > $K8S_NAMESPACE-billing.json || true artifacts: name: "logs-$CI_PIPELINE_ID" paths: - "$K8S_NAMESPACE.log" + - "$K8S_NAMESPACE-billing.json" # # dispose kubernetes resources