mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-26 04:36:00 +00:00
Pass ListOptions to List() methods.
This commit is contained in:
@@ -300,7 +300,7 @@ var _ = Describe("Pods", func() {
|
||||
}
|
||||
|
||||
By("setting up watch")
|
||||
pods, err := podClient.List(labels.SelectorFromSet(labels.Set(map[string]string{"time": value})), fields.Everything())
|
||||
pods, err := podClient.List(labels.SelectorFromSet(labels.Set(map[string]string{"time": value})), fields.Everything(), unversioned.ListOptions{})
|
||||
if err != nil {
|
||||
Failf("Failed to query for pods: %v", err)
|
||||
}
|
||||
@@ -323,7 +323,7 @@ var _ = Describe("Pods", func() {
|
||||
}
|
||||
|
||||
By("verifying the pod is in kubernetes")
|
||||
pods, err = podClient.List(labels.SelectorFromSet(labels.Set(map[string]string{"time": value})), fields.Everything())
|
||||
pods, err = podClient.List(labels.SelectorFromSet(labels.Set(map[string]string{"time": value})), fields.Everything(), unversioned.ListOptions{})
|
||||
if err != nil {
|
||||
Failf("Failed to query for pods: %v", err)
|
||||
}
|
||||
@@ -367,7 +367,7 @@ var _ = Describe("Pods", func() {
|
||||
Expect(lastPod.DeletionTimestamp).ToNot(BeNil())
|
||||
Expect(lastPod.Spec.TerminationGracePeriodSeconds).ToNot(BeZero())
|
||||
|
||||
pods, err = podClient.List(labels.SelectorFromSet(labels.Set(map[string]string{"time": value})), fields.Everything())
|
||||
pods, err = podClient.List(labels.SelectorFromSet(labels.Set(map[string]string{"time": value})), fields.Everything(), unversioned.ListOptions{})
|
||||
if err != nil {
|
||||
Fail(fmt.Sprintf("Failed to list pods to verify deletion: %v", err))
|
||||
}
|
||||
@@ -421,7 +421,7 @@ var _ = Describe("Pods", func() {
|
||||
expectNoError(framework.WaitForPodRunning(pod.Name))
|
||||
|
||||
By("verifying the pod is in kubernetes")
|
||||
pods, err := podClient.List(labels.SelectorFromSet(labels.Set(map[string]string{"time": value})), fields.Everything())
|
||||
pods, err := podClient.List(labels.SelectorFromSet(labels.Set(map[string]string{"time": value})), fields.Everything(), unversioned.ListOptions{})
|
||||
Expect(len(pods.Items)).To(Equal(1))
|
||||
|
||||
// Standard get, update retry loop
|
||||
@@ -451,7 +451,7 @@ var _ = Describe("Pods", func() {
|
||||
expectNoError(framework.WaitForPodRunning(pod.Name))
|
||||
|
||||
By("verifying the updated pod is in kubernetes")
|
||||
pods, err = podClient.List(labels.SelectorFromSet(labels.Set(map[string]string{"time": value})), fields.Everything())
|
||||
pods, err = podClient.List(labels.SelectorFromSet(labels.Set(map[string]string{"time": value})), fields.Everything(), unversioned.ListOptions{})
|
||||
Expect(len(pods.Items)).To(Equal(1))
|
||||
Logf("Pod update OK")
|
||||
})
|
||||
@@ -1037,7 +1037,7 @@ var _ = Describe("Pods", func() {
|
||||
expectNoError(framework.WaitForPodRunning(pod.Name))
|
||||
|
||||
By("verifying the pod is in kubernetes")
|
||||
pods, err := podClient.List(labels.SelectorFromSet(labels.Set(map[string]string{"time": value})))
|
||||
pods, err := podClient.List(labels.SelectorFromSet(labels.Set(map[string]string{"time": value})), fields.Everything(), unversioned.ListOptions{})
|
||||
if err != nil {
|
||||
Failf("Failed to query for pods: %v", err)
|
||||
}
|
||||
@@ -1110,7 +1110,7 @@ var _ = Describe("Pods", func() {
|
||||
expectNoError(framework.WaitForPodRunning(pod.Name))
|
||||
|
||||
By("verifying the pod is in kubernetes")
|
||||
pods, err := podClient.List(labels.SelectorFromSet(labels.Set(map[string]string{"time": value})))
|
||||
pods, err := podClient.List(labels.SelectorFromSet(labels.Set(map[string]string{"time": value})), fields.Everything(), unversioned.ListOptions{})
|
||||
if err != nil {
|
||||
Failf("Failed to query for pods: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user