Skip to content

Commit

Permalink
pod logs
Browse files Browse the repository at this point in the history
  • Loading branch information
scrungus committed Aug 14, 2024
1 parent 95fa20b commit e420887
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/functional_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,8 @@ if [ "$RESPONSE" -eq 204 ]; then

# Scrape prometheus metrics:
curl -s http://$SITE:$PORT/metrics/

# Pod logs
SELECTOR="app.kubernetes.io/name=$CHART_NAME,app.kubernetes.io/instance=$RELEASE_NAME"
POD_NAME=$(kubectl get pods -n $NAMESPACE -l $SELECTOR -o jsonpath="{.items[0].metadata.name}")
kubectl logs -n $NAMESPACE $POD_NAME

0 comments on commit e420887

Please sign in to comment.