Skip to content

Commit

Permalink
fix: list with resourceVersion=0
Browse files Browse the repository at this point in the history
  • Loading branch information
nan-ming committed Mar 30, 2024
1 parent 8cd842e commit a1fd97d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/services/allocator/nvidia/allocator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a1fd97d

Please sign in to comment.