Skip to content

Commit

Permalink
ci: collect kat test configuration from test pod
Browse files Browse the repository at this point in the history
Collect the config that was used for the test pod so that
it can be used to for debugging failing tests.

Signed-off-by: Lance Austin <laustin@datawire.io>
  • Loading branch information
Lance Austin committed Oct 17, 2022
1 parent 17cb0a1 commit b445f87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/actions/collect-logs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ runs:
tools/bin/kubectl describe pods --all-namespaces >/tmp/test-logs/cluster/all-pods-described.txt || true
tools/bin/kubectl get pods --all-namespaces -ocustom-columns="name:.metadata.name,namespace:.metadata.namespace" --no-headers | while read -r name namespace; do
echo "Pulling logs for ${name}.${namespace}"
tools/bin/kubectl --namespace="$namespace" logs "$name" >"/tmp/test-logs/cluster/pod.${namespace}.${name}.log" || true
tools/bin/kubectl exec -n $namespace $name -- tar -czf /tmp/ambassador-config-base.tgz /tmp/ambassador --exclude=secrets-decoded --exclude=webui --exclude=sidecars && kubectl cp -n "$namespace" "$name":/tmp/ambassador-config-base.tgz /tmp/test-logs/cluster/${namespace}-${name}-pod-config-base.tgz || true
done
tools/bin/kubectl cp xfpredirect:/tmp/ambassador/snapshots /tmp/test-logs/cluster/xfpredirect.snapshots || true
Expand Down

0 comments on commit b445f87

Please sign in to comment.