Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 36 of 36 for PodList (0.09 sec)

  1. pkg/controller/deployment/deployment_controller_test.go

    	informers.Start(stopCh)
    
    	podMap, err := c.getPodMapForDeployment(d, f.rsLister)
    	if err != nil {
    		t.Fatalf("getPodMapForDeployment() error: %v", err)
    	}
    	podCount := 0
    	for _, podList := range podMap {
    		podCount += len(podList)
    	}
    	if got, want := podCount, 3; got != want {
    		t.Errorf("podCount = %v, want %v", got, want)
    	}
    
    	if got, want := len(podMap), 2; got != want {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/api/core/v1/zz_generated.prerelease-lifecycle.go

    // It is controlled by "k8s:prerelease-lifecycle-gen:introduced" tags in types.go.
    func (in *PodList) APILifecycleIntroduced() (major, minor int) {
    	return 1, 0
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/helpers.go

    	var dList decodeList
    	if err := json.Unmarshal(data, &dList); err != nil {
    		return err
    	}
    
    	if err := json.Unmarshal(data, &list.Object); err != nil {
    		return err
    	}
    
    	// For typed lists, e.g., a PodList, API server doesn't set each item's
    	// APIVersion and Kind. We need to set it.
    	listAPIVersion := list.GetAPIVersion()
    	listKind := list.GetKind()
    	itemKind := strings.TrimSuffix(listKind, "List")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 20:39:55 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_test.go

    		WatchFunc: func(_ metav1.ListOptions) (watch.Interface, error) {
    			fw := watch.NewFake()
    			go fw.Stop()
    			return fw, nil
    		},
    		ListFunc: func(options metav1.ListOptions) (runtime.Object, error) {
    			return &v1.PodList{ListMeta: metav1.ListMeta{ResourceVersion: "10"}}, nil
    		},
    	}
    	r := cache.NewReflector(lw, &v1.Pod{}, store, 0)
    	r.ListAndWatch(wait.NeverStop)
    
    	{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  5. pkg/registry/core/pod/storage/storage_test.go

    					{Cells: []interface{}{"foo", "1/2", "Pending", "10", "370d", "10.1.2.3", "test-node", "nominated-node", "1/2"}, Object: runtime.RawExtension{Object: pod1}},
    				},
    			},
    		},
    		{
    			in:  &api.PodList{},
    			out: &metav1.Table{ColumnDefinitions: columns},
    		},
    		{
    			in: multiIPsPod,
    			out: &metav1.Table{
    				ColumnDefinitions: columns,
    				Rows: []metav1.TableRow{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 07:18:44 UTC 2024
    - 38.8K bytes
    - Viewed (0)
  6. src/cmd/go/proxy_test.go

    		go func() {
    			log.Fatalf("go proxy: http.Serve: %v", http.Serve(l, http.HandlerFunc(proxyHandler)))
    		}()
    
    		// Prepopulate main sumdb.
    		for _, mod := range modList {
    			sumdbOps.Lookup(nil, mod)
    		}
    	})
    }
    
    var modList []module.Version
    
    func readModList() {
    	files, err := os.ReadDir("testdata/mod")
    	if err != nil {
    		log.Fatal(err)
    	}
    	for _, f := range files {
    		name := f.Name()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 03 09:56:24 UTC 2023
    - 12K bytes
    - Viewed (0)
Back to top