Skip to content

Commit b681265

Browse files
committed
test
1 parent f446ea1 commit b681265

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

pkg/plugins/gateway/algorithms/prefix_cache.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ func (p prefixCacheRouter) Route(ctx *types.RoutingContext, pods types.PodList)
8686
var matchedPods map[string]int
8787
var targetPod *v1.Pod
8888

89+
podlist, _ := p.cache.ListPodsByModel(ctx.Model)
90+
podnames := []string{}
91+
for _, pod := range podlist.All() {
92+
podnames = append(podnames, pod.Name)
93+
}
94+
klog.InfoS("prefix_cache_router", "pods", podnames)
95+
8996
tokens, err := p.tokenizer.TokenizeInputText(ctx.Message)
9097
if err != nil {
9198
return "", err

test/run-e2e-tests.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ collect_logs() {
8989
echo "Logs for ${pod}"
9090
kubectl logs -n aibrix-system ${pod}
9191
done
92+
93+
for pod in $(kubectl get pods -o name); do
94+
echo "Logs for ${pod}"
95+
kubectl logs ${pod}
96+
done
9297
}
9398

9499
trap "collect_logs" ERR

0 commit comments

Comments
 (0)