Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for PodList (0.11 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/cacher/lister_watcher_test.go

    		t.Fatalf("List failed: %v", err)
    	}
    	pl, ok := obj.(*example.PodList)
    	if !ok {
    		t.Fatalf("Expected PodList but got %v", pl)
    	}
    	if len(pl.Items) != 3 {
    		t.Errorf("Expected PodList of length 3 but got %d", len(pl.Items))
    	}
    }
    
    func TestCacherListerWatcherPagination(t *testing.T) {
    	prefix := "pods"
    	fn := func() runtime.Object { return &example.PodList{} }
    	server, store := newEtcdTestStorage(t, prefix)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 11:51:06 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. 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)
  3. pkg/kubelet/userns/userns_manager_switch_test.go

    	testUserNsPodsManager := &testUserNsPodsManager{
    		podDir: t.TempDir(),
    		// List the same pods we will record, so the second time we create the userns
    		// manager, it will find these pods on disk with userns data.
    		podList: pods,
    	}
    	m, err := MakeUserNsManager(testUserNsPodsManager)
    	require.NoError(t, err)
    
    	// Record the pods on disk.
    	for _, podUID := range pods {
    		pod := v1.Pod{ObjectMeta: metav1.ObjectMeta{UID: podUID}}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. istioctl/pkg/util/handlers/handlers.go

    		return []string{podName}, namespace, err
    	}
    
    	options := metav1.ListOptions{LabelSelector: selector}
    	podList, err := client.Pods(namespace).List(context.TODO(), options)
    	if err != nil {
    		return []string{}, "", err
    	}
    	pods := []string{}
    	for i := range podList.Items {
    		pods = append(pods, podList.Items[i].Name)
    	}
    
    	return pods, namespace, nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 06 15:01:41 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/util_test.go

    		storage := etcd3.New(server.V3Client, apitesting.TestCodec(codecs, examplev1.SchemeGroupVersion, example2v1.SchemeGroupVersion), func() runtime.Object { return &example.Pod{} }, func() runtime.Object { return &example.PodList{} }, prefix, "/pods", schema.GroupResource{Resource: "pods"}, identity.NewEncryptCheckTransformer(), etcd3.NewDefaultLeaseManagerConfig())
    		return server, storage
    	}
    	server, etcdStorage := newEtcdTestStorage(t, "")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 11 12:07:39 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/util/config/cluster.go

    	if err != nil {
    		return "", errors.Wrap(err, "could not retrieve list of pods to determine api server endpoints")
    	}
    	if len(podList.Items) != 1 {
    		return "", errors.Errorf("API server pod for node name %q has %d entries, only one was expected", nodeName, len(podList.Items))
    	}
    	if apiServerEndpoint, ok := podList.Items[0].Annotations[constants.KubeAPIServerAdvertiseAddressEndpointAnnotationKey]; ok {
    		return apiServerEndpoint, nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 11:04:08 UTC 2024
    - 11K bytes
    - Viewed (0)
  7. istioctl/pkg/completion/completion.go

    	client, err := ctx.CLIClient()
    	if err != nil {
    		return nil, err
    	}
    	ns := ctx.NamespaceOrDefault(ctx.Namespace())
    	podList, err := client.Kube().CoreV1().Pods(ns).List(context.Background(), metav1.ListOptions{})
    	if err != nil {
    		return nil, err
    	}
    
    	var podsName []string
    	for _, pod := range podList.Items {
    		if toComplete == "" || strings.HasPrefix(pod.Name, toComplete) {
    			podsName = append(podsName, pod.Name)
    		}
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    	backingStorage := &dummyStorage{
    		getListFn: func(_ context.Context, _ string, _ storage.ListOptions, listObj runtime.Object) error {
    			podList := listObj.(*example.PodList)
    			var err error
    			switch listCalls {
    			case 0:
    				podList.ListMeta = metav1.ListMeta{ResourceVersion: "1"}
    			case 1:
    				podList.ListMeta = metav1.ListMeta{ResourceVersion: "10"}
    			default:
    				err = fmt.Errorf("unexpected list call")
    			}
    			listCalls++
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/apis/example/v1/generated.pb.go

    }
    
    var xxx_messageInfo_PodCondition proto.InternalMessageInfo
    
    func (m *PodList) Reset()      { *m = PodList{} }
    func (*PodList) ProtoMessage() {}
    func (*PodList) Descriptor() ([]byte, []int) {
    	return fileDescriptor_c0604dbfc428ecfb, []int{2}
    }
    func (m *PodList) XXX_Unmarshal(b []byte) error {
    	return m.Unmarshal(b)
    }
    func (m *PodList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	b = b[:cap(b)]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 56.9K bytes
    - Viewed (0)
  10. src/cmd/covdata/tool_test.go

    	// data file and a counter file. If we get more than just this one
    	// pair, something went wrong.
    	podlist, err := pods.CollectPods([]string{outdir}, true)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(podlist) != 1 {
    		t.Fatalf("expected 1 pod, got %d pods", len(podlist))
    	}
    	ncdfs := len(podlist[0].CounterDataFiles)
    	if ncdfs != 1 {
    		t.Fatalf("expected 1 counter data file, got %d", ncdfs)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 24.5K bytes
    - Viewed (0)
Back to top