From a1fd97d5e36f89fa2149341b681f8f7709029adc Mon Sep 17 00:00:00 2001 From: nanming Date: Sat, 30 Mar 2024 20:45:23 +0800 Subject: [PATCH] fix: list with resourceVersion=0 --- pkg/services/allocator/nvidia/allocator.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/services/allocator/nvidia/allocator.go b/pkg/services/allocator/nvidia/allocator.go index 576c1dd3..fc2c8a6c 100644 --- a/pkg/services/allocator/nvidia/allocator.go +++ b/pkg/services/allocator/nvidia/allocator.go @@ -1184,6 +1184,7 @@ func getPodsOnNode(client kubernetes.Interface, hostname string, phase string) ( podList, err = client.CoreV1().Pods(v1.NamespaceAll).List(metav1.ListOptions{ FieldSelector: selector.String(), LabelSelector: labels.Everything().String(), + ResourceVersion: "0", }) if err != nil { return false, err