Skip to content

Commit

Permalink
ci: collect billing records from kafka
Browse files Browse the repository at this point in the history
  • Loading branch information
kofemann committed Sep 13, 2023
1 parent a518359 commit 8ee9895
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ee9895

Please sign in to comment.