Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for PodList (0.12 sec)

  1. 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)
  2. 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)
  3. staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go

    	result3 := example.PodList{}
    	if err := store.GetList(ctx, "/pods", options, &result3); err != nil {
    		t.Fatalf("failed to list objects: %v", err)
    	}
    
    	options.ResourceVersion = result3.ResourceVersion
    	options.ResourceVersionMatch = metav1.ResourceVersionMatchExact
    
    	result4 := example.PodList{}
    	if err := store.GetList(ctx, "/pods", options, &result4); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 91.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go

    	// initialRV is used to initate the watcher at the beginning of the world.
    	podList := example.PodList{}
    	options := storage.ListOptions{
    		Predicate: storage.Everything,
    		Recursive: true,
    	}
    	if err := store.GetList(ctx, "/pods", options, &podList); err != nil {
    		t.Fatalf("Failed to list pods: %v", err)
    	}
    	initialRV := podList.ResourceVersion
    
    	options = storage.ListOptions{
    		ResourceVersion: initialRV,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go

    				return &http.Response{
    					StatusCode: http.StatusOK,
    					Header:     header,
    					Body:       stringBody(body),
    				}, nil
    			}),
    		}, nil
    	}
    }
    
    func testData() (*v1.PodList, *v1.ServiceList) {
    	pods := &v1.PodList{
    		ListMeta: metav1.ListMeta{
    			ResourceVersion: "15",
    		},
    		Items: []v1.Pod{
    			{
    				ObjectMeta: metav1.ObjectMeta{Name: "foo", Namespace: "test", ResourceVersion: "10"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 11:58:41 UTC 2023
    - 56.1K bytes
    - Viewed (0)
  6. pkg/controller/replicaset/replica_set_test.go

    func newPodList(store cache.Store, count int, status v1.PodPhase, labelMap map[string]string, rs *apps.ReplicaSet, name string) *v1.PodList {
    	pods := []v1.Pod{}
    	var trueVar = true
    	controllerReference := metav1.OwnerReference{UID: rs.UID, APIVersion: "v1beta1", Kind: "ReplicaSet", Name: rs.Name, Controller: &trueVar}
    	for i := 0; i < count; i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
  7. pkg/controller/podautoscaler/replica_calculator_test.go

    func (tc *replicaCalcTestCase) prepareTestClientSet() *fake.Clientset {
    	fakeClient := &fake.Clientset{}
    	fakeClient.AddReactor("list", "pods", func(action core.Action) (handled bool, ret runtime.Object, err error) {
    		obj := &v1.PodList{}
    		podsCount := int(tc.currentReplicas)
    		// Failed pods are not included in tc.currentReplicas
    		if tc.podPhase != nil && len(tc.podPhase) > podsCount {
    			podsCount = len(tc.podPhase)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Aug 19 03:31:34 UTC 2023
    - 68.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store.go

    	DeleteCollectionWorkers int
    
    	// Decorator is an optional exit hook on an object returned from the
    	// underlying storage. The returned object could be an individual object
    	// (e.g. Pod) or a list type (e.g. PodList). Decorator is intended for
    	// integrations that are above storage and should only be used for
    	// specific cases where storage of the value is not appropriate, since
    	// they cannot be watched.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 23:22:44 UTC 2024
    - 60.8K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex_test.go

    	a := &ambientTestServer{
    		t:         t,
    		clusterID: clusterID,
    		network:   networkID,
    		index:     idx.(*index),
    		fx:        up,
    		pc:        clienttest.NewDirectClient[*corev1.Pod, corev1.Pod, *corev1.PodList](t, cl),
    		sc:        clienttest.NewDirectClient[*corev1.Service, corev1.Service, *corev1.ServiceList](t, cl),
    		ns:        clienttest.NewWriter[*corev1.Namespace](t, cl),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 01:04:50 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    			podItems := []v1.Pod{}
    			for _, pod := range tt.pods {
    				podItems = append(podItems, *pod)
    			}
    			cs := clientsetfake.NewSimpleClientset(&v1.PodList{Items: podItems})
    			informerFactory := informers.NewSharedInformerFactory(cs, 0)
    			podInformer := informerFactory.Core().V1().Pods().Informer()
    			podInformer.GetStore().Add(tt.pod)
    			for i := range tt.pods {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
Back to top