Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for PodList (0.13 sec)

  1. pkg/controller/controller_utils_test.go

    	rc := newReplicationController(0)
    	podList := newPodList(nil, 7, v1.PodRunning, rc)
    	podList.Items[0].Status.Phase = v1.PodSucceeded
    	podList.Items[1].Status.Phase = v1.PodFailed
    	podList.Items[2].Status.Phase = v1.PodPending
    	podList.Items[2].SetDeletionTimestamp(&now)
    	podList.Items[3].Status.Phase = v1.PodRunning
    	podList.Items[3].SetDeletionTimestamp(&now)
    	var podPointers []*v1.Pod
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go

    			newListObjectFunc: func() runtime.Object { return &examplev1.PodList{} },
    		},
    		{
    			name:              "pick 500 pods out of 5000 pod",
    			objectNum:         5000,
    			expectNum:         500,
    			selector:          labels.SelectorFromSet(map[string]string{"foo": "bar"}),
    			newObjectFunc:     generateBigPod,
    			newListObjectFunc: func() runtime.Object { return &examplev1.PodList{} },
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  3. pkg/kubelet/userns/userns_manager_test.go

    	}
    	return m.podDir
    }
    
    func (m *testUserNsPodsManager) ListPodsFromDisk() ([]types.UID, error) {
    	if len(m.podList) == 0 {
    		return nil, nil
    	}
    	return m.podList, nil
    }
    
    func (m *testUserNsPodsManager) HandlerSupportsUserNamespaces(runtimeHandler string) (bool, error) {
    	if runtimeHandler == "error" {
    		return false, errors.New("unknown runtime")
    	}
    	return m.userns, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/writers_test.go

    }
    
    func benchmarkItems(b *testing.B, file string, n int) *v1.PodList {
    	pod := v1.Pod{}
    	f, err := os.Open(file)
    	if err != nil {
    		b.Fatalf("Failed to open %q: %v", file, err)
    	}
    	defer f.Close()
    	err = json.NewDecoder(f).Decode(&pod)
    	if err != nil {
    		b.Fatalf("Failed to decode %q: %v", file, err)
    	}
    
    	list := &v1.PodList{
    		Items: make([]v1.Pod, n),
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  5. pkg/controller/tainteviction/taint_eviction_test.go

    			ctx, cancel := context.WithCancel(context.Background())
    			fakeClientset := fake.NewSimpleClientset(&corev1.PodList{Items: []corev1.Pod{*item.pod}})
    			controller, podIndexer, _ := setupNewController(ctx, fakeClientset)
    			controller.recorder = testutil.NewFakeRecorder()
    			go controller.Run(ctx)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  6. pkg/kubelet/server/server.go

    		response.WriteError(http.StatusBadRequest, err)
    		return
    	}
    }
    
    // encodePods creates an v1.PodList object from pods and returns the encoded
    // PodList.
    func encodePods(pods []*v1.Pod) (data []byte, err error) {
    	podList := new(v1.PodList)
    	for _, pod := range pods {
    		podList.Items = append(podList.Items, *pod)
    	}
    	// TODO: this needs to be parameterized to the kubelet, not hardcoded. Depends on Kubelet
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 40.1K bytes
    - Viewed (0)
  7. pkg/controller/podgc/gc_controller_test.go

    func setupNewSimpleClient(nodes []*v1.Node, pods []*v1.Pod) *fake.Clientset {
    	podList := &v1.PodList{}
    	for _, podItem := range pods {
    		podList.Items = append(podList.Items, *podItem)
    	}
    	nodeList := &v1.NodeList{}
    	for _, nodeItem := range nodes {
    		nodeList.Items = append(nodeList.Items, *nodeItem)
    	}
    	return fake.NewSimpleClientset(nodeList, podList)
    }
    
    func getDeletedPodNames(client *fake.Clientset) sets.Set[string] {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 08:16:48 UTC 2024
    - 29K bytes
    - Viewed (0)
  8. pkg/controller/volume/attachdetach/attach_detach_controller_test.go

    		i++
    	}
    	i = 0
    	podList, err := informerFactory.Core().V1().Pods().Lister().List(labels.Everything())
    	for len(podList) < podsNum {
    		if err != nil {
    			t.Fatalf("Error getting list of nodes %v", err)
    		}
    		if i > 100 {
    			t.Fatalf("Time out while waiting for the pod informer sync: found %d pods, expected %d pods", len(podList), podsNum)
    		}
    		time.Sleep(100 * time.Millisecond)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 11:00:37 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  9. pkg/scheduler/scheduler_test.go

    func getPodFromPriorityQueue(queue *internalqueue.PriorityQueue, pod *v1.Pod) *v1.Pod {
    	podList, _ := queue.PendingPods()
    	if len(podList) == 0 {
    		return nil
    	}
    
    	queryPodKey, err := cache.MetaNamespaceKeyFunc(pod)
    	if err != nil {
    		return nil
    	}
    
    	for _, foundPod := range podList {
    		foundPodKey, err := cache.MetaNamespaceKeyFunc(foundPod)
    		if err != nil {
    			return nil
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 42K bytes
    - Viewed (0)
  10. pkg/kube/client.go

    	// GetIstioPods retrieves the pod objects for Istio deployments
    	GetIstioPods(ctx context.Context, namespace string, opts metav1.ListOptions) ([]v1.Pod, error)
    
    	// GetProxyPods retrieves all the proxy pod objects: sidecar injected pods and gateway pods.
    	GetProxyPods(ctx context.Context, limit int64, token string) (*v1.PodList, error)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 39K bytes
    - Viewed (0)
Back to top