fix getPodMatches should call /runningpods endpoint

This commit is contained in:
carlory
2025-02-12 13:44:15 +08:00
parent 80bf507fac
commit 9a60ea01f9

View File

@@ -67,7 +67,7 @@ const (
func getPodMatches(ctx context.Context, c clientset.Interface, nodeName string, podNamePrefix string, namespace string) sets.String {
matches := sets.NewString()
framework.Logf("Checking pods on node %v via /runningpods endpoint", nodeName)
runningPods, err := e2ekubelet.GetKubeletPods(ctx, c, nodeName)
runningPods, err := e2ekubelet.GetKubeletRunningPods(ctx, c, nodeName)
if err != nil {
framework.Logf("Error checking running pods on %v: %v", nodeName, err)
return matches